Search found 21 matches

by VPExplorer
25 Sep 2019 16:48
Forum: Visual Prolog
Topic: Does PIE allow you to define your own predicates?
Replies: 2
Views: 890

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

Yep, I've been through the instructions, just wasn't familiar with the pie interface.

Ok, thanks.
by VPExplorer
24 Sep 2019 18:25
Forum: Visual Prolog
Topic: Does PIE allow you to define your own predicates?
Replies: 2
Views: 890

Does PIE allow you to define your own predicates?

Hi, I'm able to run the standard predicates that PIE exposes, but can't type in any new facts, like person(sally). or likes(karen,jeff). , it just reports an unknown clause. PIE doesn't take domains and predicates directives, like Visual Prolog. It seems like standard Prolog. But I can't figure out ...
by VPExplorer
13 Mar 2013 21:03
Forum: Visual Prolog
Topic: How do you get op() to work?
Replies: 2
Views: 958

Hokay, roger on that, thanks Thomas.
by VPExplorer
13 Mar 2013 11:44
Forum: Visual Prolog
Topic: How do you get op() to work?
Replies: 2
Views: 958

How do you get op() to work?

Hi, I keep getting syntax errors, VP is not recognizing op. VP keeps returning an Undeclared identifier 'op/3'. Isn't op an internal Prolog command, or is it considered part of a custom package, in VP? Is there some initial preparation that needs to be done, to be able to define operators? Because i...
by VPExplorer
5 Mar 2013 17:11
Forum: Visual Prolog
Topic: How to configure a button test click event procedure, as 'determ'?
Replies: 3
Views: 1156

Re:

Yep, works fine, thanks Thomas. In Prolog (including Visual Prolog) variables cannot be updated. The fist line here: SMessagesTextToAdd = "what the...?", SMessagesTextToAdd = string::concat( SMessagesCurrentText, SMessagesTextToAdd ), will bind SMessagesTextToAdd to "what the...?" . The second line ...
by VPExplorer
4 Mar 2013 20:54
Forum: Visual Prolog
Topic: How to configure a button test click event procedure, as 'determ'?
Replies: 3
Views: 1156

Also tried using the concat procedure from the 5xVIP.5xString package, after adding the package to the project. But Visual Prolog is not recognizing the concat/3 procedure. If I concat is preceded with the package name 5xString.concat, it's interpreted as a syntax error, and anyway the editor doesn'...
by VPExplorer
4 Mar 2013 20:25
Forum: Visual Prolog
Topic: How to configure a button test click event procedure, as 'determ'?
Replies: 3
Views: 1156

How to configure a button test click event procedure, as 'determ'?

Hi, I'm using a button to just test some code snippets. In this case, I just want to return the contents of a text box, after adding a string. If I use this as the button test click event code: predicates onBtnTest09Click : button::clickResponder. clauses onBtnTest09Click(_Source) = button::defaultA...
by VPExplorer
5 Feb 2013 22:22
Forum: Visual Prolog
Topic: Visual Prolog 7.4 is reconfiguring itself
Replies: 1
Views: 926

Never mind, looks like a minor issue. I pointed it to the original installation executable, and whatever was wrong seems to have abandoned ship.
by VPExplorer
5 Feb 2013 22:15
Forum: Visual Prolog
Topic: Visual Prolog 7.4 is reconfiguring itself
Replies: 1
Views: 926

Visual Prolog 7.4 is reconfiguring itself

Hi, Been working on taxes, so haven't ran Visual Prolog in several weeks. But when I just tried to run it, it went through some process that looked like a new installation. Now it's saying that a network resources is unavailable, and is asking for the location of 'vip7400ce.msi'. Has anyone else had...
by VPExplorer
1 Oct 2012 16:42
Forum: Visual Prolog
Topic: Predicate to remove unwanted characters from strings
Replies: 2
Views: 1194

Re:

Thanks, Thomas. I do have the commercial license, but shouldn't need regular expressions yet. In the string class you will find: predicates replaceAll : (string Source, string ReplaceWhat, string ReplaceWith) -> string Output. replaceAll : (string Source, string ReplaceWhat, string ReplaceWith, case...
by VPExplorer
1 Oct 2012 14:42
Forum: Visual Prolog
Topic: Predicate to remove unwanted characters from strings
Replies: 2
Views: 1194

Predicate to remove unwanted characters from strings

Hi, Is there a built-in predicate that will replace substrings of a string with strings of one's choice? For example, if you had a boolean form AB +AC' + ABC , and you want to replace the spaces with nothing, and the '+' with 'v', to become ABvAC'vABC , is there a built-in way to do that?
by VPExplorer
19 Sep 2012 11:17
Forum: Visual Prolog
Topic: How to return to a form, after running a command button
Replies: 3
Views: 1130

Re:

It looks like I had cloned the button, from an Ok button. That did the trick, thank you sir. The default action of an OK (and a Cancel ) button is to close the dialog. If you don't what buttons to close the dialog you can do one of the following: Make sure that th button have Regular style, or retur...
by VPExplorer
18 Sep 2012 20:22
Forum: Visual Prolog
Topic: How to return to a form, after running a command button
Replies: 3
Views: 1130

How to return to a form, after running a command button

Hi,

Every one of my buttons in a form seems to do what it's supposed to. But after the commands associated with the buttons complete, the forms exits. I'd like the user to click on the button, let the subprocess complete, and then return to the form.
by VPExplorer
18 Sep 2012 15:04
Forum: Visual Prolog
Topic: How to load a form without a menu
Replies: 8
Views: 1927

Re:

Perfect, thanks.
Tonton Luc wrote:Hi,
A simple exemple :

Code: Select all

predicates     onShow : window::showListener. clauses     onShow(_, _CreationData):-         _MessageForm = messageForm::display(This),         _MyForm = frmMyForm::display(This)         .
by VPExplorer
18 Sep 2012 15:04
Forum: Visual Prolog
Topic: How to load a form without a menu
Replies: 8
Views: 1927

Re:

That clears it up, ok thanks.

Thomas Linder Puls wrote:Yes, sorry. It is onShow.