Search found 2438 matches

by Thomas Linder Puls
12 Sep 2019 22:56
Forum: Visual Prolog
Topic: PIE
Replies: 2
Views: 109

Re: PIE

Yes, it is an example program, both in Personal and Commercial Edition.
by Thomas Linder Puls
9 Sep 2019 8:29
Forum: Visual Prolog
Topic: unsigned8 bit operations
Replies: 3
Views: 204

Re: unsigned8 bit operations

This works fine:

Code: Select all

BX = hasDomain(unsigned8, B1 ^^ B2),
by Thomas Linder Puls
9 Sep 2019 8:24
Forum: Visual Prolog
Topic: Is Professional Visual Prolog still sold ?
Replies: 1
Views: 151

Re: Is Professional Visual Prolog still sold ?

The Commercial Edition is still sold (also on Sundays).

You have received a direct answer, concerning your purchase attempts. I am sorry for the inconvenience.
by Thomas Linder Puls
6 Sep 2019 11:50
Forum: Visual Prolog
Topic: Saving/Consulting a List of objects
Replies: 3
Views: 198

Re: Saving/Consulting a List of objects

Objects (and predicates) cannot be saved and consulted. Well as you experienced they can be saved, but they cannot be consulted. There is a technical problem in dealing with cyclic and duplicate references between objects, but that could most likely be handled. But there is also a conceptual problem...
by Thomas Linder Puls
5 Sep 2019 11:09
Forum: Visual Prolog
Topic: integer or string to binary
Replies: 7
Views: 283

Re: integer or string to binary

If you are dealing with something that has a certain "struct" layout, then you can (most likely) create a functor domain that has a the same layout. It you are dealing with an array the are a number of array classes that be used to deal with it. Finally, you can use inputStream_binary/outputStream_b...
by Thomas Linder Puls
4 Sep 2019 9:27
Forum: Visual Prolog
Topic: Optional parameters
Replies: 1
Views: 194

Re: Optional parameters

It is a bug, thank you for the info.

The problem is only when you declare the predicate using a predicate domain. I.e. it disappears if you change the declaration like this:

Code: Select all

class predicates     enum : (unsigned A [out], unsigned B [out], unsigned C [out]) nondeterm.
by Thomas Linder Puls
3 Sep 2019 22:15
Forum: Visual Prolog
Topic: integer or string to binary
Replies: 7
Views: 283

Re: integer or string to binary

To answer the question we need more information. What is the binary going to be used for? Must it have some format/specific representation of the data?
by Thomas Linder Puls
31 Aug 2019 9:18
Forum: Visual Prolog
Topic: how to register VP 5.2 Personal Edition?
Replies: 1
Views: 206

Re: how to register VP 5.2 Personal Edition?

We do not issue licenses for Visual Prolog 5.2 anymore. But you can download and register the latest version of Visual Prolog.
by Thomas Linder Puls
20 Aug 2019 8:02
Forum: Visual Prolog
Topic: Undeclared identifier & Undeclared fact
Replies: 5
Views: 437

Re: Undeclared identifier & Undeclared fact

Now that you have moved your facts to the database implementation, you can only access the fact database in that class. So you also have to move your consult and save code to that class. class database ... predicates saveUsers : (string File). end class database With corresponding implementation: im...
by Thomas Linder Puls
19 Aug 2019 21:35
Forum: Visual Prolog
Topic: Examples about sending email
Replies: 1
Views: 364

Re: Examples about sending email

The Commercial edition has a sendMail_smtp class, that can be used to send mails using the SMTP protocol. It does not support secure connections.

There is no support for receiving mails.
by Thomas Linder Puls
19 Aug 2019 21:25
Forum: Visual Prolog
Topic: SQlite DB
Replies: 1
Views: 357

Re: SQlite DB

SQlite can be accessed by means of ODBC; but it requires the Commercial edition of Visual Prolog.

See ODBC.
by Thomas Linder Puls
19 Aug 2019 21:19
Forum: Visual Prolog
Topic: Listener definitions
Replies: 1
Views: 385

Re: Listener definitions

onDestroy is a destroyListener, which is invoked when the window is destroyed:

Code: Select all

domains     destroyListener = (window Source).     % @short This listener is invoked only once when the window is destroyed.     % @end
by Thomas Linder Puls
16 Aug 2019 11:28
Forum: Visual Prolog
Topic: Undeclared Identifier
Replies: 3
Views: 442

Re: Undeclared Identifier

Just include code directly in the text (enclosing it by [ code ]..[ /code ]) tags, then it will look like this: % This code is maintained automatically, do not update it manually. % 17:51:34-16.8.2019 facts ok_ctl : button. cancel_ctl : button. id_ctl : editControl. predicates generatedInitialize : ...
by Thomas Linder Puls
15 Aug 2019 14:58
Forum: Visual Prolog
Topic: Undeclared identifier & Undeclared fact
Replies: 5
Views: 437

Re: Undeclared identifier & Undeclared fact

Welcome back :wink:. In future please only have one problem in each mail. Mail threads becomes very complex when they are about several topics . The first problem sounds very strange. Please post this problem in a new mail, and include there relevant code in that mail. I will consider that problem c...
by Thomas Linder Puls
5 Aug 2019 13:56
Forum: Visual Prolog
Topic: Compiled clauses
Replies: 10
Views: 866

Re: Compiled clauses

When going from one language to another, you may of course consider how things you faced in the old language is treated in the new one. But often you will find that the "things" in the new language is not the same as those in the old language. You should notice that Visual Prolog is a fully compiled...