Search found 333 matches

by Harrison Pratt
5 Oct 2015 19:11
Forum: Visual Prolog
Topic: Regular Expression Syntax
Replies: 2
Views: 4177

Regular Expression Syntax

Is there a reference for the syntax used in the VIP regex match and search predicates? Several different "flavors" of regex exist and I'm having trouble using a few of the common expressions. For example, Suppose that I want to search the string "_x1239999" for "_x12". Using the regular expression "...
by Harrison Pratt
24 Sep 2015 21:45
Forum: Visual Prolog
Topic: Breakpoint properties and conditions
Replies: 9
Views: 6436

Thanks, Thomas, and thanks also to Peter for starting this thread. There will be dancing in the streets!
by Harrison Pratt
22 Sep 2015 20:30
Forum: Visual Prolog
Topic: Optional then in an if/then/else statement
Replies: 5
Views: 4965

On the scale of things we need to manage, this is a tiny one However, Microsoft has made then optional for multi-line statements, at least in VB.

https://msdn.microsoft.com/en-us/library/752y8abs.aspx
by Harrison Pratt
9 Sep 2015 12:02
Forum: Visual Prolog
Topic: Need More sample and logic
Replies: 6
Views: 4848

Andro, You can use text files and VIP databases you process with file::consult and file::save predicates to store your diagnostic criteria. These can be large enough to support your project with no significant performance loss. Don't let lack of access to ODBC stymie you. As a side question, what me...
by Harrison Pratt
8 Sep 2015 13:20
Forum: Visual Prolog
Topic: Need More sample and logic
Replies: 6
Views: 4848

As a first step, think carefully about how you will model the facts (collections of observations) which permit diagnosis of various diseases with XX% probability. Then, figure out how you can represent these in a form that is easy to maintain, perhaps in a text file that you can parse into prolog fa...
by Harrison Pratt
20 Aug 2015 21:29
Forum: Visual Prolog
Topic: What is TaskMenu item?
Replies: 6
Views: 4805

Re: Menu items

Question for Thomas:

Might it be possible in some future version of VIP 7.x to combine the functions of managing TaskMenu.mnu and TaskMenu.win using two different "experts" into a single "super-expert?"

To me, the current approach seems more awkward than it needs to be.
by Harrison Pratt
16 Jul 2015 18:23
Forum: Visual Prolog
Topic: Try/Catch block makes the cut useless:what is the rationale?
Replies: 6
Views: 4229

http://wiki.visual-prolog.com/index.php?title=Language_Reference/Terms#try-catch-finally First Body is evaluated. If Body fails or succeeds the whole try construction fails or succeeds , respectively. I.e. if Body does not terminate with an exception the try construction corresponds to evaluating Bo...
by Harrison Pratt
24 Apr 2015 13:31
Forum: Visual Prolog
Topic: Documentation of the Task Menu
Replies: 5
Views: 3950

Re: Suggestions to improve the enu documentation

Good suggestions, thanks! MenuDoc has a long way to go before it's finished. I'm also thinking about generating a separate hot key listing and linking some explanatory text (in a separate file) with the menu constants to provide a high level view of program options. Harrison, May I suggest some impr...
by Harrison Pratt
24 Apr 2015 12:13
Forum: Visual Prolog
Topic: Documentation of the Task Menu
Replies: 5
Views: 3950

Frank, This is what the output looks like with deeper menu options. The code only supports 3 menu levels (2 below the top level menu). I plan to change that to a recursive code structure once I sort out how to decode the other menu options. In the absence of documentation of the MNU file, I'm resort...
by Harrison Pratt
22 Apr 2015 16:13
Forum: Visual Prolog
Topic: Documentation of the Task Menu
Replies: 5
Views: 3950

I found the DOMAIN declarations for the facts in the TaskMenu.mnu file in one of the VIP 5.2 directories and have made a tiny toy project to display the menu structure (item Names and Constants) for the menu. If someone could provide some documentation on meaning of the .MNU file contents it would b...
by Harrison Pratt
26 Mar 2015 14:02
Forum: Visual Prolog
Topic: Garbage collection from a project
Replies: 2
Views: 2614

Re: Garbage collection from a project

How can I erase the files which are no longer used in a project? I open Windows explorer (right click on one of the items to delete), rename the files to be deleted (e.g., from myTools.pro to myTools. pro deleted ). As soon as I do that, the IDE marks the files with a red X. When you rebuild the pr...
by Harrison Pratt
11 Feb 2015 4:07
Forum: Visual Prolog
Topic: Domain and Fact Naming Conflict (VIP 7.4 vs 5.2)
Replies: 1
Views: 1756

Domain and Fact Naming Conflict (VIP 7.4 vs 5.2)

In VIP 5.2 it was possible to have a domain defined with the same structure as a fact, as in (1) below. In 7.5 the compiler complains "The declaration conflicts with another declaration of 'test/2' in the scope." Is there some way to declare a domain with the same name & structure as a fact, or must...
by Harrison Pratt
25 Jan 2015 17:58
Forum: Visual Prolog
Topic: Minor issue with dialogs
Replies: 12
Views: 5043

Re: Minor issue with dialogs

I've noticed some minor but rather annoying issues primarily with dialogs. Most times when I need to edit a dialog or even just open one the Execute command won't run. If I minimize the VP window and restore it again I can run the Execute command but often I will receive a message indicating the di...
by Harrison Pratt
25 Jan 2015 17:30
Forum: Visual Prolog
Topic: Periodic automatic re-installation of VIP 7.5
Replies: 6
Views: 5542

Re:

Thanks for the info on auto-updating. From Control Panel | Add or Remove Programs I did a Repair of the VIP 7.501 installation and the problem seems to be fixed. Harrison Visual Prolog is not update automatically. What you experience must be a Windows problem. I don't know what makes it happen, but ...
by Harrison Pratt
21 Jan 2015 14:39
Forum: Visual Prolog
Topic: Periodic automatic re-installation of VIP 7.5
Replies: 6
Views: 5542

Hmmm ... the Start Menu shortcut points to the VIP directory. If I make a short cut directly to VIP.EXE the IDE launches much faster. I haven't yet traced out what happens when launching from the Start Menu shortcut (or a copy of that shortcut placed on the desktop). It seems like it might be an ins...