Search found 119 matches

by Steve Lympany
16 Oct 2011 22:05
Forum: Visual Prolog
Topic: Table Editor Package vpiTableed
Replies: 8
Views: 2093

Hi,
Sorry - I've moved my website to a new host. I will try to upload everything again this week.
regards
Steve
by Steve Lympany
12 Oct 2011 17:51
Forum: Visual Prolog
Topic: Tarbo prolog
Replies: 5
Views: 1261

Hi,
You can google.
"turbo prolog download"
maybe...?
regards
Steve
by Steve Lympany
11 Oct 2011 8:11
Forum: Visual Prolog
Topic: How to get zero when we convert empty string to integer..??
Replies: 3
Views: 1333

Hi, Just some ideas: class predicates convertToReal:(string)->real. clauses convertToReal(String) = Real :- if Real = math::tryToReal(String) then else Real=0 end if. domains type=r(real);i(integer);empty;unknown. class predicates convertToType:(string)->type. clauses convertToType(String) = Type :-...
by Steve Lympany
10 Oct 2011 18:05
Forum: Visual Prolog
Topic: Tarbo prolog
Replies: 5
Views: 1261

by Steve Lympany
10 Oct 2011 17:13
Forum: Visual Prolog
Topic: Stopping a thread
Replies: 2
Views: 1169

Stopping a thread

Hi, I have an app which does a calculation in a thread. I am trying to allow the user to issue "stop" to terminate the calculation (which may last from a couple of minutes to an hour+ to complete). It lets the user get on with other things (in the app). So, I could issue a Thread:terminate(), but th...
by Steve Lympany
4 Oct 2011 8:58
Forum: Visual Prolog
Topic: how to exit a foreach loop in advance
Replies: 9
Views: 4205

Hi, facts boo_continue:boolean:=erroneous. predicates test:(). clauses test():- boo_continue:=true, foreach I=std::fromTo(1,1000) do if boo_continue=true then %is tested for every I. No quick jump! %...whatever if I=20 then %for example boo_continue:=false end if end if end foreach. regards Steve
by Steve Lympany
3 Oct 2011 8:01
Forum: Visual Prolog
Topic: Coding Doubt..
Replies: 2
Views: 897

Hi,
In string::

frontChar:()
toCharList:()

and, in reverse charToString : ()

regards
Steve
by Steve Lympany
27 Sep 2011 16:56
Forum: Visual Prolog
Topic: Manipulate Data in Visual Prolog
Replies: 8
Views: 1936

Hi,
Press the "search" button at the top of this page.
cheers
Steve
by Steve Lympany
27 Sep 2011 15:09
Forum: Visual Prolog
Topic: Manipulate Data in Visual Prolog
Replies: 8
Views: 1936

Hi,
Do searches "odbc" and "mysql" on this forum. Are solutions there for you?
cheers
Steve
by Steve Lympany
22 Sep 2011 7:41
Forum: Visual Prolog
Topic: Note on scrollbars (VDE)
Replies: 1
Views: 894

Note on scrollbars (VDE)

Hi Thomas,

In the properties dialog for controls, there is a small inconsistency. Under the "properties" tab, there is no option to add V or H scrollbars (they can be added manually of course), but under the events tab, there are options to add their listeners.

Cheers
Steve
by Steve Lympany
14 Sep 2011 13:10
Forum: Visual Prolog
Topic: Variable '_groupeResumeFictif' is not completely bound
Replies: 2
Views: 1228

Hi, I think you probably want/need this: common_exception::raise_error() eg clauses get1GroupeResume( "Nord", GroupeResume):- GroupeResume=nord:getGroupeResume(),!. get1GroupeResume( "Est", GroupeResume):- GroupeResume=est:getGroupeResume(),!. get1GroupeResume( "Sud", GroupeResume):- GroupeResume=su...
by Steve Lympany
12 Sep 2011 21:52
Forum: Visual Prolog
Topic: how use "or" in the condition if-then-else
Replies: 5
Views: 1436

Hi,
For OR you must use:

if () then
elseif () then
else
end if

But you can have AND :

if (A=1, B=1) then

http://wiki.visual-prolog.com/index.php ... .28code.29

cheers
Steve
by Steve Lympany
10 Sep 2011 17:42
Forum: Visual Prolog
Topic: "The body of 'foreach' Must Be procedure"
Replies: 8
Views: 2210

Hi,
If you search the forum for "comprehension", one item you will find (on 'list comprehension') is

http://wiki.visual-prolog.com/index.php ... prehension

cheers
steve
by Steve Lympany
6 Sep 2011 11:46
Forum: Visual Prolog
Topic: DXF Files
Replies: 1
Views: 817

DXF Files

Hi,
I'm investigating developing a graphics + analysis app that uses DXF files as input. Has anyone written a parser for DXF?

cheers
steve
by Steve Lympany
30 Aug 2011 20:50
Forum: Visual Prolog
Topic: About save data bases
Replies: 5
Views: 1645

Hi,
You may find this useful

http://wiki.visual-prolog.com/index.php ... ss_builder

regards
Steve