Search found 1635 matches

by Thomas Linder Puls
4 Sep 2019 9:27
Forum: Visual Prolog
Topic: Optional parameters
Replies: 1
Views: 1537

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

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

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

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

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

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

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

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

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

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...
by Thomas Linder Puls
5 Aug 2019 11:01
Forum: Visual Prolog
Topic: Otherwise operator with erroneous predicate
Replies: 2
Views: 1813

Re: Otherwise operator with erroneous predicate

It seems that something has only been implemented as a special case. But I do not recall the history around about this. Anyways, in principle the error is the correct behavior in all cases, because the predicates you call do actually not return values, and can therefore not be the second arguments o...
by Thomas Linder Puls
1 Jul 2019 13:45
Forum: Visual Prolog
Topic: presenter::mkExpand
Replies: 8
Views: 2185

Re: presenter::mkExpand

My colleagues agree it is the native expansion that is used. I have added the word to the documentation.
by Thomas Linder Puls
1 Jul 2019 11:52
Forum: Visual Prolog
Topic: presenter::mkExpand
Replies: 8
Views: 2185

Re: presenter::mkExpand

My brain has looked into some forgotten memory slots (or invented a story). Though this is not what consistent with the documentation, I think this is deliberate. What happens is that a an "expand" presentation, will show/write the first argument, but expand like the native expansion of the second a...
by Thomas Linder Puls
1 Jul 2019 10:15
Forum: Visual Prolog
Topic: presenter::mkExpand
Replies: 8
Views: 2185

Re: presenter::mkExpand

Yes, that it is a good question :-). We will look at it.
by Thomas Linder Puls
28 Jun 2019 10:59
Forum: Visual Prolog
Topic: Inheriting a presenter
Replies: 1
Views: 1159

Re: Inheriting a presenter

That is a bug, we will look at it. Thank you.

(Currently, you will have to put the presenter interfaces first in the supports).