Search found 695 matches

by Steve Lympany
6 Mar 2012 22:51
Forum: Visual Prolog
Topic: RE:workinng with many aspects in one dialog box
Replies: 11
Views: 2793

Hi, Create a dialog with your questions on, but set [some] controls as invisible. Make them visible when a question has been answered. You can make a dialog look very intelligent if you hide/unhide controls (and other questions) depending on answers to questions. Maybe use listboxes to provide possi...
by Steve Lympany
21 Feb 2012 22:29
Forum: Visual Prolog
Topic: How assert dynamic facts
Replies: 11
Views: 3240

Hi, I jut found some old code - it may be useful. To read a spreadsheet, select the cells, copy to the Windows clipboard., then "paste" into your VIP app (vpi::cbputstring). Then decode it: domains split_tab=split_tab; no_split_tab. predicates make_list_from_string :(split_tab Split_tab,string S,str...
by Steve Lympany
13 Feb 2012 15:25
Forum: Visual Prolog
Topic: Form onActivate event
Replies: 4
Views: 1472

Hi,
onPaint() is called after the form (or part of it) has been "damaged" and needs to be repainted. Place your code there.

Code: Select all

predicates     onPaint : drawWindow::paintResponder.
cheers
s
by Steve Lympany
7 Feb 2012 10:04
Forum: Visual Prolog
Topic: Form onActivate event
Replies: 4
Views: 1472

Hi,
Do you mean, instead, a form getting the focus?
Otherwise, what do you mean by "active"?
cheers
s
by Steve Lympany
2 Feb 2012 21:03
Forum: Visual Prolog
Topic: Add menu items dynamically
Replies: 2
Views: 1009

by Steve Lympany
1 Feb 2012 21:44
Forum: Visual Prolog
Topic: Implementation file size and include directive
Replies: 3
Views: 1180

Hi David, Design from scratch. Start a brand new VIP7 project. Think top down, and define your new classes. When you start to implement, cut and paste useful bits from your old project (and convert syntax of course). You will then have no design baggage, which can really slow implementation down and...
by Steve Lympany
20 Jan 2012 18:05
Forum: Visual Prolog
Topic: Reg - fact window
Replies: 17
Views: 4366

Hi,
:?:
What's a fact window?
This line:

retract(factPredicates(No, Name)),

is nondeterm and retracts all facts, because No and Name are not bound.

regards
Steve
by Steve Lympany
20 Jan 2012 17:23
Forum: Visual Prolog
Topic: Windows 8
Replies: 1
Views: 1413

Windows 8

Hi Thomas,
I was just reading
http://www.zdnet.com/blog/microsoft/wha ... ag=nl.e589

and thought of you :-)

Do you have any news on VIP + Windows 8?

cheers
steve
by Steve Lympany
19 Jan 2012 16:49
Forum: Visual Prolog
Topic: Changing file headers
Replies: 4
Views: 1606

Hi,
I have a little tool that can do this:

http://www.acsumama.com/babyvic_1001.exe

First I would
1) open your project PRJ6 with it,
2) do a full backup, then close BabyVic
3) open the backup project PRJ6 with BabyVic
4) Replace texts in all files

Sorry it's not very user-friendly.
cheers
s
by Steve Lympany
7 Jan 2012 10:51
Forum: Visual Prolog
Topic: Reg - what does the following Command line mean and why we use it??
Replies: 37
Views: 8253

Hi,
This is a bit old, but maybe useful:
http://discuss.visual-prolog.com/viewtopic.php?t=6859
cheers
s
by Steve Lympany
3 Jan 2012 16:35
Forum: Visual Prolog
Topic: varM versus fact-variables
Replies: 15
Views: 4460

Hi, If you have an object "door", the states could be "open", "opening", "closing", "closed". For an object "boiler", there could be several variables/facts eg current temperature, pressure, size. But you could also have a state whereby an object can check itself for safety or consistency - like an ...
by Steve Lympany
2 Jan 2012 12:44
Forum: Visual Prolog
Topic: how can use varible(X) in form1 and form2?
Replies: 7
Views: 2458

Hi,
Search this forum for "form1" (oddly enough!)
regards
s
by Steve Lympany
2 Jan 2012 12:38
Forum: Visual Prolog
Topic: varM versus fact-variables
Replies: 15
Views: 4460

Hi,
Facts should be used to describe some state of the object, or important value for the object. For unimportant / transient etc values, like counters, varM should be used.
cheers
s
by Steve Lympany
29 Dec 2011 11:17
Forum: Visual Prolog
Topic: how to make a fuinction "While" or "Until"
Replies: 5
Views: 2563

Hi,
Also see
http://wiki.visual-prolog.com/index.php ... ms#foreach

and
std::repeat

eg

Code: Select all

test():-      std:repeat,         do_something,         until_this_succeeds,         and_then_do_this,...
cheers
s