Search found 94 matches

by Paul Cerkez
19 Mar 2017 19:48
Forum: Visual Prolog
Topic: Rotate a bitmap by an arbitrary angle
Replies: 10
Views: 3996

Harrison,
I did exactly this a few years back. let me see if I can find my code.

P.
by Paul Cerkez
19 Jan 2017 18:16
Forum: Visual Prolog
Topic: Problem reading large VIP 5.2 database file as text strings
Replies: 7
Views: 3112

Harrison,
A 'dumb' suggestion.

Have you tried breaking up the file being imported to see if you can do multiple successive file reads?

I had a situation years ago where I could not import the entire single file but if I broke into two, I could import everything using two reads.

P.
by Paul Cerkez
15 Aug 2016 23:34
Forum: Visual Prolog
Topic: IDE Toolbar Buttons Unresponsive
Replies: 6
Views: 11623

Ah, Yes, good old Turbo Prolog 2.0 Where I had my first introduction to Prolog. :-)

P.
by Paul Cerkez
23 Jul 2016 13:20
Forum: Visual Prolog
Topic: PIE
Replies: 4
Views: 3838

Thank you.
by Paul Cerkez
23 Jul 2016 1:24
Forum: Visual Prolog
Topic: PIE
Replies: 4
Views: 3838

Thanks, I will download and check it out. (i'm still using 7.4 CE for my own use, wasn't sure about PIE in PE)
by Paul Cerkez
22 Jul 2016 14:21
Forum: Visual Prolog
Topic: PIE
Replies: 4
Views: 3838

PIE

Thomas,
Is the PIE still available for use in VIP, more specifically, in the PE version?

I am getting ready to teach an AI class and would like to use the PIE as an intro to Prolog (will also help introduce the VIP environment to some who have never seen it before :wink: ).
by Paul Cerkez
9 Jun 2016 11:54
Forum: Visual Prolog
Topic: = versus := Differences between unification and assignment operators.
Replies: 4
Views: 4593

Welcome back.

See: http://wiki.visual-prolog.com/index.php ... ence/Facts

:= is the assignment operator (for facts)
= is equality test if both are bound variables or assignment if one is free.
by Paul Cerkez
6 Apr 2016 0:49
Forum: Visual Prolog
Topic: Need Help - Kakuro
Replies: 4
Views: 4609

While I don't have a solution I can offer a suggestion that might help some. I've played this 'game' before and I find it challenging (but fun!). It is similar to Sudoku (each number can only be used once in a column or row) but with the added twist of summing the numbers. I suggest looking at the S...
by Paul Cerkez
28 Mar 2016 12:13
Forum: Visual Prolog
Topic: IDE Editor blocks external clipboard manager in Windows 10
Replies: 2
Views: 3343

Harrison, I would first verify that M8 tested it in 'user' mode and not Administrator mode. Win 10 has a lot more restrictions in that regard (as did Win7 compared to XP). I had a bunch of programs that worked perfectly in XP but would only run in Win7 (and above) in Admin mode (the application elev...
by Paul Cerkez
11 Mar 2016 15:15
Forum: Visual Prolog
Topic: Flow analysis problem
Replies: 5
Views: 4713

don't know for sure but it looks like it will just pull what ever is currently store in the memory location for the variable.

Sort of surprised though that you are not getting an 'unbound variable' error at compile time.
by Paul Cerkez
12 Jan 2016 13:25
Forum: Visual Prolog
Topic: Semicolon and parentheses in clause body
Replies: 7
Views: 5113

my half cent perspective: I never use the logical operators AND, OR within a clause to execute two different actions/results as they can be really problematic when trouble shooting. I always use extra clauses. (call it a personal preference :-) ) in the case of a(...) OR b(...) I would use what Thom...
by Paul Cerkez
12 Jan 2016 13:06
Forum: Visual Prolog
Topic: coordonates of point
Replies: 10
Views: 6204

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: 5363

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: 7339

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: 7339

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.