Search found 1165 matches

by Thomas Linder Puls
5 Mar 2020 9:54
Forum: Visual Prolog
Topic: Accessing IDE Variables & Version Information
Replies: 9
Views: 4262

Re: Accessing IDE Variables & Version Information

The default about dialogs contains one or more versionControls. Such a versionControl can format information from programs own version resource.

So by looking at that code you will be able to see how to read version (resource) information.
by Thomas Linder Puls
4 Mar 2020 12:37
Forum: Visual Prolog
Topic: Accessing IDE Variables & Version Information
Replies: 9
Views: 4262

Re: Accessing IDE Variables & Version Information

Last thing first: The file does not have to exist, because the interface is also used to create such files (i.e. using save ). "main.version" was just meant as an informative indication; if you mean some particular file you must of course provide a proper path to that file. From you path I can see t...
by Thomas Linder Puls
3 Mar 2020 17:02
Forum: Visual Prolog
Topic: Accessing IDE Variables & Version Information
Replies: 9
Views: 4262

Re: Accessing IDE Variables & Version Information

(1) No. We are using an approach similar to yours. (2) Version Information is stored in a version file (typically main.version). The version file can be shared by several projects, and hence the information will become the same in all those programs. The information is in xml format, but you dont re...
by Thomas Linder Puls
19 Feb 2020 16:05
Forum: Visual Prolog
Topic: Bug in SciLexer
Replies: 2
Views: 3458

Re: Bug in SciLexer

Unfortunately, most of these properties cannot be set like that, because the control does not exist at that place. Currently there is no other way to solve that problem than setting the property manually in a show listener: clauses new(Parent) :- formWindow::new(Parent), generatedInitialize(), addSh...
by Thomas Linder Puls
30 Jan 2020 10:32
Forum: Visual Prolog
Topic: Problem with several SQL datatypes
Replies: 2
Views: 3478

Re: Problem with several SQL datatypes

Many ODBC/SQL configurations requires that "large" fields are last in the query. So if you write select large_field, small_field from ... you will get such an error. But if you write select small_field, large_field from ... then you will not get an error. When you write select * from ... you are ask...
by Thomas Linder Puls
27 Jan 2020 15:43
Forum: Visual Prolog
Topic: The control is shift to right on the ToolBar of application
Replies: 5
Views: 4403

Re: The control is shift to right on the ToolBar of application

I have not been able to reproduce the problem.

But the code you state seems harmless, and if it solves the problem then we will add it.
by Thomas Linder Puls
17 Jan 2020 7:25
Forum: Visual Prolog
Topic: Download Visual Prolog 7.1
Replies: 1
Views: 3392

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

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

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

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

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

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: 5
Views: 4859

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

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

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