Search found 695 matches

by Steve Lympany
18 Dec 2011 14:43
Forum: Visual Prolog
Topic: Ligc exercises in Prolog
Replies: 1
Views: 1278

Hi,
Well, if you provide your first attempt, we can provide suggestions and show where your errors are.

If you don't know Visual Prolog, you should read the tutorial and try the examples.

cheers
s
by Steve Lympany
8 Dec 2011 15:42
Forum: Visual Prolog
Topic: Timers and Pictures
Replies: 4
Views: 2000

Hi, Well you won't be able to save the objects directly (because they will just be a bunch of pointers). So you will have to create facts (eg in the management class) that you can save and consult from). The facts will have to contain all the properties of each traffic light object (position, curren...
by Steve Lympany
8 Dec 2011 12:59
Forum: Visual Prolog
Topic: Timers and Pictures
Replies: 4
Views: 2000

Hi, I would (if you haven't already), have a traffic light drawing/control class. You would send each light start and stop (etc) messages, and each would have its own timer. So when you create an object, immediately do a timerset() for it - it would run continuously. You would probably need a traffi...
by Steve Lympany
5 Dec 2011 9:35
Forum: Visual Prolog
Topic: Reg - what does the following Command line mean and why we use it??
Replies: 37
Views: 7992

Hi,
See PRODOC in the help file.
cheers
s
by Steve Lympany
2 Dec 2011 17:56
Forum: Visual Prolog
Topic: Help with dialog and timers
Replies: 4
Views: 1774

Hi, Hmmm - so you still have a pointer to a timer which no longer exists...a bit dodgy! Instead, use a normal fact db_timer(Timer) and retract it when you kill it. Don't use a fact variable. And use an uppercase variable in the ontimer clause of course. Whether that's the problem I'm not sure. See w...
by Steve Lympany
2 Dec 2011 16:51
Forum: Visual Prolog
Topic: Help with dialog and timers
Replies: 4
Views: 1774

Hi,
Are you sure userCarTimer is lowercase, and not a variable?
cheers
s
by Steve Lympany
1 Dec 2011 10:47
Forum: Visual Prolog
Topic: How to add a top 10 table with dialog ?
Replies: 13
Views: 3044

Hi,
Yes, it is quite old, and the library has changed. Here is an updated project.
cheers
s
Hmm - I was getting server SQL errors when I posted those. It fails when adding the attachment (27kb). Will try later
s
by Steve Lympany
30 Nov 2011 21:25
Forum: Visual Prolog
Topic: How to add a top 10 table with dialog ?
Replies: 13
Views: 3044

Hi
1) \pfc\gui\controls\listViewControl
2) Click (in the menu at the top of this forum's page) SUPPORT->EXAMPLES
and look for Chan Bok's example
cheers
s
by Steve Lympany
30 Nov 2011 17:59
Forum: Visual Prolog
Topic: which Local Predicate should i write to invoke form Minimize then Restore
Replies: 2
Views: 1252

Hi,
setstate().

Use the wsf_* flags
cheers
Steve
by Steve Lympany
29 Nov 2011 15:36
Forum: Visual Prolog
Topic: How to add a top 10 table with dialog ?
Replies: 13
Views: 3044

Hi,
To avoid using tables (for simplicity at the moment...?), just use the "list" control, or better still, "listViewControl" in the pfc. Both are described in the help file.
cheers
s
by Steve Lympany
29 Nov 2011 15:29
Forum: Visual Prolog
Topic: How to delete the data inside the file without using delete predicate the file..??
Replies: 1
Views: 990

Hi, Maybe createNewFile(FileName):- if file::exist(FileName) then file::writeString(FileName,"") else CreateNewFile = outputStream_file::create(FileName), CreateNewFile:close() end if or maybe the followin works anyway - I haven't tested it createNewFile(FileName):- file::writeString(FileName,""). c...
by Steve Lympany
29 Nov 2011 9:08
Forum: Visual Prolog
Topic: No attached VPI window - exception
Replies: 2
Views: 1303

Hi,
Call timerset() after the onshow.
cheers
Steve
by Steve Lympany
28 Nov 2011 13:28
Forum: Visual Prolog
Topic: classes and database - NEED HELP (it's urgent)
Replies: 8
Views: 2401

Hi, class facts - db pix : pixel:=erroneous. %fact variable - no need to assert Notice the comment. there is no need for the line assert(p). This is a fact variable. But there is only one fact, and therefore one pixel. So I think you need to use the other example I gave. Note that: class facts - db2...
by Steve Lympany
28 Nov 2011 11:05
Forum: Visual Prolog
Topic: classes and database - NEED HELP (it's urgent)
Replies: 8
Views: 2401

Hi, Er - possibly some typos above! You might try one of these: class facts - db pix : pixel:=erroneous. %fact variable - no need to assert class predicates add_to_db:(). clauses add_to_db():- pix:= pixel::new(), pix:setRow(1), pix:setCol(2), pix:setColor(color_Yellow). class facts - db2 db_pix : (p...