Search found 51 matches

by B.Hooijenga
4 Oct 2021 14:10
Forum: Visual Prolog
Topic: programming a forest in the TreeControl package.
Replies: 2
Views: 309

Re: programming a forest in the TreeControl package.

Thomas,

Thank you. I give it another try.

Kind regards

Ben
by B.Hooijenga
3 Oct 2021 11:08
Forum: Visual Prolog
Topic: programming a forest in the TreeControl package.
Replies: 2
Views: 309

programming a forest in the TreeControl package.

Thomas, Long, long ago I wrote a personal information manager, The treeControl package did not exist and I used the treeViewControl package. I still use it.. But I have two good reasons for changing to the treeControl package. 1. loaded with more than 7000 items, my depthfirst routine .uses up the s...
by B.Hooijenga
3 Aug 2021 8:34
Forum: Visual Prolog
Topic: object expressions
Replies: 2
Views: 615

Re: object expressions

Thanks Thomas,

It is clear now and working.

Kind regards
Ben
by B.Hooijenga
2 Aug 2021 14:00
Forum: Visual Prolog
Topic: object expressions
Replies: 2
Views: 615

object expressions

Hello I just started to study object expressions. I try to get the first example test1() working. https://wiki.visual-prolog.com/index.php?title=Language_Reference/Terms#Examples This is my code: namespace objectExpressions interface iterator open core predicates hasNext : () determ. next : () -> in...
by B.Hooijenga
22 Feb 2021 12:41
Forum: Visual Prolog
Topic: Reading Metadata from a File
Replies: 2
Views: 1298

Re: Reading Metadata from a File

Hello Thomas,

Thank you very much for your time and effort.

Everything works great and is very instructive.

Kind regards,

Ben
by B.Hooijenga
18 Feb 2021 12:01
Forum: Visual Prolog
Topic: Reading Metadata from a File
Replies: 2
Views: 1298

Reading Metadata from a File

Hello Thomas, I am in the process of studying GDI+. I am trying to read the metadata of a file, using this link as an example: https://docs.microsoft.com/en-us/windows/win32/gdiplus/-gdiplus-reading-and-writing-metadata-use This is my code so far. doDraw(_Graphics, "Reading and Writing Metadata...
by B.Hooijenga
19 May 2020 9:00
Forum: Visual Prolog
Topic: troubles installing build vip905ce.msi
Replies: 3
Views: 3867

Re: troubles installing build vip905ce.msi

Hallo Harrison and Thomas, Combining your replies I uninstalled vip 9.0.4 ( using the normal windows-uninstaller). So, I had a computer without a vip9 installation. That feels a little strange. But after that, installing build 9.0.5 succeeded. :D Lesson learned: keep a new build in the same director...
by B.Hooijenga
18 May 2020 12:07
Forum: Visual Prolog
Topic: troubles installing build vip905ce.msi
Replies: 3
Views: 3867

troubles installing build vip905ce.msi

Hello Thomas, I am having troubles with installing build 905 After downloading and calling vip905ce.msi I get this message from the Windows Installer: (I translated the dutch text) There is already another version of this program installed. You can not proceed with the installation of this version. ...
by B.Hooijenga
16 Apr 2020 12:53
Forum: Visual Prolog
Topic: strange result in array2M
Replies: 2
Views: 4153

Re: strange result in array2M

Thank you Thomas,

All is working well,

But: list::getMemberIndex_nd() does not exist in my helpfile too.

Kind regards
Ben
by B.Hooijenga
16 Apr 2020 10:00
Forum: Visual Prolog
Topic: strange result in array2M
Replies: 2
Views: 4153

strange result in array2M

Hello, I try to initialize an array2M, but get a strange result. Am I doiing something wrong? class facts - matrixDB linsys : array2M{real} := erroneous. sizeX : positive := erroneous. % 4 colums sizeY : positive := erroneous. % 3 rows class facts v : (real*). clauses v([2, 1, -1, 8]). v([-3, -1, 2,...
by B.Hooijenga
23 Oct 2019 13:21
Forum: Visual Prolog
Topic: Reading hexadecimal from utf8 files
Replies: 9
Views: 6918

Re: Reading hexadecimal from utf8 files

Loffy

For classical bytes you need unsigned8 as domain.

To pick up the unsigned8 values from the binary you could use the predicate:
binary::getIndexed_unsigned8/2->

Using a hexadecimal notation for unsigned8 values is possible.
for instance
X = 0xFF.

Kind regards

Ben
by B.Hooijenga
17 Oct 2019 13:59
Forum: Visual Prolog
Topic: Progress Bar status indicator
Replies: 37
Views: 40788

Re: Progress Bar status indicator

hello Loffy,

please try: vpi::processEvents immediate after write command
like:

Code: Select all

        msg:write("Busy with backup ...\n"),         _ = vpi::processEvents(),         ...         rest of code
I had no troubles so far.

regards
Ben
by B.Hooijenga
14 Sep 2019 8:48
Forum: Visual Prolog
Topic: convert unsigned 64
Replies: 5
Views: 5184

Re: convert unsigned 64

Tick = time::getTickCount(), %unsigned64
bit::getUnsigned64bytes(Tick, Low, _High),
stdio::write(Low, "\n").

Kind regards
Ben
by B.Hooijenga
5 Sep 2019 14:14
Forum: Visual Prolog
Topic: integer or string to binary
Replies: 7
Views: 5616

Re: integer or string to binary

Loffy, The type unsigned uses 32 bits and an unsigned8 uses 8 bits Both types are just a sequence of bits. There is no principal difference. Visual Prolog uses the bitsize to define them. Visual Prolog has a class for bit-operations. The class uses unsigned. But I think you can use them for whatever...
by B.Hooijenga
3 Sep 2019 15:45
Forum: Visual Prolog
Topic: integer or string to binary
Replies: 7
Views: 5616

Re: integer or string to binary

Hello Loffy, Strings in Visual Prolog use unicode. These strings must be converted to unsigned8. Here is an example. I use it for communicating with a robot. Binary = unicodestring_to_bin("hallo "), stdio::write(Binary). predicates unicodestring_to_bin : (string) -> binary. clauses unicode...