Search found 295 matches

by Harrison Pratt
29 Oct 2014 21:39
Forum: Visual Prolog
Topic: Managing previously created "external" Packages in a project
Replies: 9
Views: 3153

Thomas,

Thanks for the very helpful advice about the expected directory tree structure!

Harrison
by Harrison Pratt
29 Oct 2014 3:44
Forum: Visual Prolog
Topic: Managing previously created "external" Packages in a project
Replies: 9
Views: 3153

Thomas, Yes, I sent the internal error dialog info 2 or 3 times, at least twice with a comment in the "what were you doing?" field. I think I have sorted out my problem -- I was creating a New package which was overwriting the original Glinda library files (fortunately backed up). I wasn't certain w...
by Harrison Pratt
28 Oct 2014 19:07
Forum: Visual Prolog
Topic: Managing previously created "external" Packages in a project
Replies: 9
Views: 3153

Paul, Good suggestion, but the '.' in the directory name was not the cause of the internal error problem in this case. After renaming the suspect directory, I removed all my personal IDE variables and any reference to them in the Include settings. I then restarted the IDE, tried to create a new IDE ...
by Harrison Pratt
28 Oct 2014 14:57
Forum: Visual Prolog
Topic: Managing previously created "external" Packages in a project
Replies: 9
Views: 3153

Thomas, Thanks for your explanation on managed my "Glinda" library code. I have not been able to make it work on my system, however. My understanding of the process is thus: (1) Create an IDE variable with it's value set to the directory of my library; (2) add an include path by pointing to the libr...
by Harrison Pratt
23 Oct 2014 21:56
Forum: Visual Prolog
Topic: Managing previously created "external" Packages in a project
Replies: 9
Views: 3153

Managing previously created "external" Packages in a project

I've seen this addressed somewhere in the VIP 7.x discussion, but can't find it. :-( When using VIP 5.2 I managed my library of useful routines by including my primary stable utility code module (Glinda.pro & glinda.pre) within one module of my project, typically in the "App.pro" and "App.pre" files...
by Harrison Pratt
22 Oct 2014 12:16
Forum: Visual Prolog
Topic: All My Recent Documents belong to VIP 7.5 !
Replies: 3
Views: 2052

Windows XP
by Harrison Pratt
21 Oct 2014 13:44
Forum: Visual Prolog
Topic: All My Recent Documents belong to VIP 7.5 !
Replies: 3
Views: 2052

All My Recent Documents belong to VIP 7.5 !

I just noticed that when I open a single project in VIP 7.5 PE the My Recent Documents folder is completely filled with all the projects listed in the project selection menu of the VIP IDE! While this is not necessarily the end of Western civilization as we know it, it did find it annoying as I was ...
by Harrison Pratt
21 Oct 2014 12:43
Forum: Visual Prolog
Topic: VpiCommonDialogs:ask with more than 3 answers does not work
Replies: 1
Views: 1621

Use this until you craft your own flexible dialog to accomdate a greater, variable number of buttons:

Code: Select all

        Title = "Do you want to do XXX?",         Choices = ["Yes","No","Always","Never"],         b_true = listSelect(Title,Choices,-1,PickedStr,_),
by Harrison Pratt
9 Oct 2014 14:45
Forum: Visual Prolog
Topic: Technical problems on discussion forum and wiki
Replies: 7
Views: 2750

I hope you will be able to migrate what remains of the VIP 5.x forum topics, recalling that much was lost in a previous migration.
We are in a slow process of moving the discussion forum and the wiki to new hardware and update some of involved software.
by Harrison Pratt
8 Oct 2014 12:42
Forum: Visual Prolog
Topic: how to enter options in list box for user to select ..pls he
Replies: 2
Views: 1747

Re:

angel10 wrote:how to enter options in list box for user to select ..pls help i m new to visual prolog
Search the Help file for "List Box Controls" for an overview.

For more specific details and example code, search Help for "lbox_add" and follow the topics.
by Harrison Pratt
3 Aug 2014 12:28
Forum: Visual Prolog
Topic: Visual Prolog 7.5 Installation failed under Windows XP
Replies: 3
Views: 2076

Re: Visual Prolog 7.5 Installation failed under Windows XP

It installed for me without a hiccup on XP SP3.
Can we run the 7.5 Release under Windows XP SP3 ?
by Harrison Pratt
27 May 2014 13:30
Forum: Visual Prolog
Topic: commondialogs::tryGet_string
Replies: 10
Views: 3234

Re:

Frank, Thanks for pointing out that vulnerability! Harrison Bad News: 1: If the user cancels the common dialog then the program does not execute the 2: If the user presses the [Enter] immediately without a "y" character the the Response will be an empty string and FC =string::frontChar( Response ) c...
by Harrison Pratt
26 May 2014 23:23
Forum: Visual Prolog
Topic: commondialogs::tryGet_string
Replies: 10
Views: 3234

This is an untested approach you might consider: class facts finding : ( string ClinicalSignOrSymptom ). class predicates ask_put_finding : ( window, string, string ) determ (i,i,i). ask_signs_and_symptoms : ( window, string Patient ) . clauses ask_put_finding( ParentWin, Pt, SignSymptom ) :- Prompt...
by Harrison Pratt
9 Apr 2014 23:17
Forum: Visual Prolog
Topic: Increase integer variable
Replies: 7
Views: 1950

Thanks, Thomas. I understand your meaning.
Code maintainability (by ordinary mortals) and clarity should be the first consideration.
by Harrison Pratt
9 Apr 2014 14:19
Forum: Visual Prolog
Topic: Increase integer variable
Replies: 7
Views: 1950

Question for Thomas: Is this somewhat equivalent code compiled to better/worse/same code as the if/then/else syntax? something(0, Cnt) = Cnt :- !. something(N, Cnt1) = Cnt0 :- 0 = N mod 2 , % if test(...) then !, Cnt0 = something( N-1, Cnt1 ). something(N, Cnt) = Cnt0 :- Cnt0 = something( N-1, Cnt +...