Search found 1632 matches

by Thomas Linder Puls
17 Jan 2020 7:25
Forum: Visual Prolog
Topic: Download Visual Prolog 7.1
Replies: 1
Views: 90

Re: Download Visual Prolog 7.1

We don't provide old versions.

But you can download the latest/current version from: Visual Prolog Downloads.
by Thomas Linder Puls
9 Jan 2020 11:11
Forum: Visual Prolog
Topic: memoryAccessor
Replies: 2
Views: 253

Re: memoryAccessor

I am not really sure why the original code was that complex; this should do: clauses new() :- isAtomic := toBoolean(pfc\reflection\reflection_native::termRepresentedByValue(typeLibraryOf(@Elem))), SV = if true = isAtomic then sizeOfDomain(@Elem) else sizeOfDomain(pointer) end if, if SV = 1 then get_...
by Thomas Linder Puls
4 Jan 2020 16:22
Forum: Visual Prolog
Topic: Declaring predicates containing elipse
Replies: 2
Views: 259

Re: Declaring predicates containing elipse

The predicate takes a predicate without arguments (e. g. a runnable) as argument

Code: Select all

predicates     qqq : (core::runnable Action).
by Thomas Linder Puls
2 Jan 2020 7:54
Forum: Visual Prolog
Topic: PIE: How to ask Rules ?
Replies: 1
Views: 260

Re: PIE: How to ask Rules ?

The tutorials Fundamental Prolog Part 1 & Part 2 describes how to do "traditional" Prolog programming using PIE.
by Thomas Linder Puls
1 Jan 2020 22:57
Forum: Visual Prolog
Topic: Can't compile with data declared as fact.
Replies: 1
Views: 217

Re: Can't compile with data declared as fact.

Your male fact is nondeterm, and therefore run becomes nondeterm. But run is declared to be a procedure. You can solve the problem using foreach like this: clauses run() :- foreach male(X) do stdio::writef("% is a male \n", X) end foreach. I suggest you work through these lessons .
by Thomas Linder Puls
19 Dec 2019 9:49
Forum: Visual Prolog
Topic: Maximized message window
Replies: 2
Views: 427

Re: Maximized message window

I think you are asking about: messageForm:setState([wsf_maximized]) To bring it back to normal/restored state you use the wsf_restored flag. You should however notice that maximizing is for all the MDI child windows; either the MDI parent displays the child windows maximized or at their "restored" s...
by Thomas Linder Puls
16 Dec 2019 10:29
Forum: Visual Prolog
Topic: Source file too large?
Replies: 2
Views: 443

Re: Source file too large?

I don't think this is because the file is to large. I think it is some other thing that causes this. The editor c++ code complains about reading beyond the end of the text (when we save the file). This happens when reading the 14th 8KB buffer from the editor. I cannot understand why we ask for somet...
by Thomas Linder Puls
9 Dec 2019 14:35
Forum: Visual Prolog
Topic: Default for a boolean component
Replies: 1
Views: 533

Re: Default for a boolean component

Thank you. We have already solved this problem (internally).
by Thomas Linder Puls
6 Dec 2019 11:15
Forum: Visual Prolog
Topic: Increase buffer size
Replies: 2
Views: 542

Re: Increase buffer size

The default buffer size for both reading and writing to files is 8KB: class inputStream_file : inputStream open core constants defaultBufferSize = 0x2000. If your read in 8 bit text mode (e.g. utf8), the actual buffer size is only half, because we there is an approximate doubling when converting fro...
by Thomas Linder Puls
29 Nov 2019 23:31
Forum: Visual Prolog
Topic: Fault tolerant heap shim message
Replies: 3
Views: 989

Re: Fault tolerant heap shim message

It is a Windows thing. It seems to be controllable. See: Fault Tolerant Heap.
by Thomas Linder Puls
12 Nov 2019 11:16
Forum: Visual Prolog
Topic: Variables display in the debugger - drops leading string character
Replies: 3
Views: 830

Re: Variables display in the debugger - drops leading string character

I can reproduce the problem.
But it does not exist in Vip 9.
by Thomas Linder Puls
8 Nov 2019 14:08
Forum: Visual Prolog Tips & Samples
Topic: ~ CalmoSoft Fifteen Puzzle Game ~
Replies: 14
Views: 18388

Re: ~ CalmoSoft Fifteen Puzzle Game ~

Notice that you already knew it (see a couple of mails above :-)).
by Thomas Linder Puls
8 Nov 2019 9:21
Forum: Visual Prolog Tips & Samples
Topic: ~ CalmoSoft Fifteen Puzzle Game ~
Replies: 14
Views: 18388

Re: ~ CalmoSoft Fifteen Puzzle Game ~

The Personal Edition doesn't contain vpiOldDomains.

When I compile the project with the Commercial Edition I don't get any errors.

Notice that when upgrading to the newer gui structure you will not need vpiOldDomains.
by Thomas Linder Puls
5 Nov 2019 15:07
Forum: Visual Prolog
Topic: ListViewControl Right Click quirk
Replies: 4
Views: 1067

Re: ListViewControl Right Click quirk

I have updated hitTest like this (i.e. the lines after the cut):: clauses hitTest(PNT, ItemId, SubItem) :- LVHITTESTINFO = gui_native::lvhittestinfo(PNT, 0, 0, 0, 0), _ = gui_native::sendMessage(nativeWindow, lvm_subItemHitTest, gui_api::wNull, uncheckedConvert(gui_native::lParam, LVHITTESTINFO)), g...