Search found 2449 matches

by Thomas Linder Puls
22 Oct 2019 9:32
Forum: Visual Prolog
Topic: Progress Bar status indicator
Replies: 27
Views: 405

Re: Progress Bar status indicator

Actually there is no threading problem with the method that updates the progress of a progressBarControl because that method uses SendMessage function which is thread safe. So it it perfectly safe to do like this from any thread: clauses longOperation(...) :- ... % do something theProgressBarControl...
by Thomas Linder Puls
21 Oct 2019 11:41
Forum: Visual Prolog
Topic: Progress Bar status indicator
Replies: 27
Views: 405

Re: Progress Bar status indicator

The problem in Progress Example 1 is caused by a bug in statusBarCell . But you can circumvent the bug by changing the order of the operations: implement projectToolbar ... clauses create(Parent) :- StatusBar = statusBar::newApplicationWindow(), StatusCell = statusBarCell::new(StatusBar, statusBarCe...
by Thomas Linder Puls
16 Oct 2019 9:58
Forum: Visual Prolog
Topic: Progress Bar status indicator
Replies: 27
Views: 405

Re: Progress Bar status indicator

You should notice that it is difficult to deal with progress bars and long running operations. First of all the GUI thread must be active . If/while the GUI thread is performing long calculations the progressBar (and all other GUI) is frozen, and Windows will eventually mark the application as "not ...
by Thomas Linder Puls
16 Oct 2019 9:24
Forum: Visual Prolog
Topic: Progress Bar status indicator
Replies: 27
Views: 405

Re: Progress Bar status indicator

To have a progressBarControl in one of the cells, you will do something like this (this is from the IDE code and there is probably things that you don't need): facts progress_ctl : progressBarControl := erroneous. clauses progressBarNew(Message, MaxCount) = ProgressBarId :- ProgressBarId = progressB...
by Thomas Linder Puls
16 Oct 2019 8:44
Forum: Visual Prolog
Topic: Progress Bar status indicator
Replies: 27
Views: 405

Re: Progress Bar status indicator

If you have created and attached a status bar as described above you should remove it again. A standard GUI project comes with a status bar: implement projectToolbar open vpiDomains, vpiToolbar, resourceIdentifiers class facts statusCell : statusBarCell := erroneous. clauses create(Parent) :- Status...
by Thomas Linder Puls
14 Oct 2019 10:46
Forum: Visual Prolog
Topic: List unification problem
Replies: 6
Views: 242

Re: List unification problem

It is obviously a bug that the compiler doesn't treat this correctly. And we will fix it (later :-)).
by Thomas Linder Puls
14 Oct 2019 9:27
Forum: Visual Prolog
Topic: What does "The personal Edition contains a reduced library" mean?
Replies: 1
Views: 115

Re: What does "The personal Edition contains a reduced library" mean?

There are only two editions.

The differences can be found here Visual Prolog Editions Comparison.

The price is now €100.
by Thomas Linder Puls
10 Oct 2019 11:23
Forum: Visual Prolog
Topic: List unification problem
Replies: 6
Views: 242

Re: List unification problem

Just out of curiosity, how did you discover this?

I find it very unusual to use unification like that. After all

Code: Select all

[As, [X]] = [[X], Bs]
is just a more obscure way to write:

Code: Select all

As = [X], [X] = Bs
by Thomas Linder Puls
7 Oct 2019 22:40
Forum: Visual Prolog
Topic: List unification problem
Replies: 6
Views: 242

Re: List unification problem

Thank you.

In the correct processing X is first bound and later compared

But unfortunately the operations has been exchanged, so that X is first compared and then bound.
by Thomas Linder Puls
7 Oct 2019 22:25
Forum: Visual Prolog
Topic: unsigned64 bit operations
Replies: 1
Views: 430

Re: unsigned64 bit operations

Thank you. We will look at it.
by Thomas Linder Puls
25 Sep 2019 8:16
Forum: Visual Prolog
Topic: Does PIE allow you to define your own predicates?
Replies: 2
Views: 336

Re: Does PIE allow you to define your own predicates?

Yes, it does. But the window window you are entering things in is a "goal" window. It interprets everything as a question/goal. To enter your own clauses you will put them in an editor window and consult the contents. I suggest that you go through: Fundamental Prolog Part 1 Fundamental Prolog Part 2
by Thomas Linder Puls
12 Sep 2019 22:56
Forum: Visual Prolog
Topic: PIE
Replies: 2
Views: 479

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

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

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

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...