Search found 388 matches

by Paul Cerkez
12 Jan 2016 13:06
Forum: Visual Prolog
Topic: coordonates of point
Replies: 10
Views: 4961

Not sure about in VIP 7.5 but I could swear there used to be a clause to get the color directly from the pnt(X,Y). don't remember exactly but it was something like: Color = Win_GetPixel(Win, pnt(X, Y)) you provided the window handle and the coordinates and then retrieved the color. It's been quite a...
by Paul Cerkez
10 Nov 2015 14:22
Forum: Visual Prolog
Topic: Syntax Error c150
Replies: 2
Views: 4536

Looks like its from Turbo Prolog V2 or maybe PDC Prolog 3. :-)

Definitely need to review current syntax.

And yes Victor, Towers of Hanoi is easy to implement in the current VIP. Don't "over think it"
by Paul Cerkez
30 Oct 2015 1:00
Forum: Visual Prolog
Topic: bindParamenter issue: [Microsoft][ODBC Microsoft Access Driver]String data, right truncated
Replies: 12
Views: 5961

yup, that's it.

Thanks Thomas.
by Paul Cerkez
29 Oct 2015 16:40
Forum: Visual Prolog
Topic: bindParamenter issue: [Microsoft][ODBC Microsoft Access Driver]String data, right truncated
Replies: 12
Views: 5961

its been a while since i did any SQL

but I assume that the ? in the
StatementString = insert into PersonBin(name, age, birthday, longfield) values (?,?,?,?)
values section are replaced with bound variables or fixed values.

If not, the input string will error. As written, it looks like an attempt to create a blank record.
by Paul Cerkez
15 Oct 2015 15:53
Forum: Visual Prolog
Topic: vPcURL encoded an URL
Replies: 8
Views: 5344

I use something similar to Tonton's. (learned back in the VIP 4.x/5.x days and carried out to today)
by Paul Cerkez
22 Sep 2015 11:05
Forum: Visual Prolog
Topic: Optional then in an if/then/else statement
Replies: 5
Views: 4352

I agree with the "awkward"

Stay consistent with the then as always part of the syntax.
by Paul Cerkez
15 Sep 2015 12:32
Forum: Visual Prolog
Topic: Universal Quantification
Replies: 21
Views: 11920

before the for... capabilities were added to VIP (back when we only had to worry about Determ -NonDeterm and Succeed/Fail) I simply created my own predicate with a set of clauses that checked each condition and then executed <something>. There was almost always a 'graceful fail' at the end to go bac...
by Paul Cerkez
9 Sep 2015 12:43
Forum: Visual Prolog
Topic: Compiler options for endless loops and stack overflow
Replies: 7
Views: 3983

Thanks Martin, I couldn't remember the name "Halting Problem" - (they say memory is the 2nd thing to go when you get old, I just wish I could remember the 1st! :wink: )
by Paul Cerkez
8 Sep 2015 23:24
Forum: Visual Prolog
Topic: Compiler options for endless loops and stack overflow
Replies: 7
Views: 3983

very interesting question. Thomas may have another answer but in my gut, I think you might have a bunch of frivolous warnings. strictly playing devil's advocate here: What about the case where you are monitoring an external input, would that not be an endless loop? What about the case where the endl...
by Paul Cerkez
30 Jun 2015 15:25
Forum: Visual Prolog
Topic: Personal VP Download Problem
Replies: 8
Views: 3016

agree, go with new

I had (still do actually) Turbo Prolog 2.0 When I upgraded to PDC 3 (many years ago), it was much easier to start over new rather than convert. The older code gave me design concepts and 'how' I wanted things to perform at the concept level but the effort to convert the code was too much and locked ...
by Paul Cerkez
27 Feb 2015 15:00
Forum: Visual Prolog
Topic: Debug File Flag
Replies: 6
Views: 2537

back in the "old" days before the built in debugger, I used to do something very similar. I would create a global constant, then with conditional compilation flags, I would embed troubleshooting statements in my code surrounded by the flag. Then all I had to do was change the global flag's value and...
by Paul Cerkez
2 Feb 2015 12:54
Forum: Visual Prolog
Topic: how to remove duplicates of facts ?
Replies: 16
Views: 7210

a few years back, based on advice from Thomas, Carston, and others from PDC while at the 2008 VIP-ALC in St Petersburg, I implemented my Neural Network in a Red-Black collection. It gave me faster performance and a clean structure. the NN was a multi-level one with many thousand neurons and many mor...
by Paul Cerkez
29 Jan 2015 16:57
Forum: Visual Prolog
Topic: resourse identifier constant
Replies: 7
Views: 2657

You're welcome.
by Paul Cerkez
29 Jan 2015 13:22
Forum: Visual Prolog
Topic: resourse identifier constant
Replies: 7
Views: 2657

Frank, I did something similar to what you are talking about approx. 20 years ago when I had to ensure that data values from user selections (e.g., radio buttons, specific text fields) being stored would always map back to the same control across all subsequent releases of the application. It was a ...
by Paul Cerkez
22 Jan 2015 16:54
Forum: Visual Prolog
Topic: Stack Overflow
Replies: 4
Views: 2054

Thanks Martin, that makes sense.