Search found 283 matches

by Harrison Pratt
2 Aug 2012 16:43
Forum: Visual Prolog
Topic: Using 7z.dll
Replies: 4
Views: 1542

I used 7za.exe, the command line version, in a failrly data-intensive application. Never had a problem with that approach. The lastest file date I find on SourceForge is 2007: http://sourceforge.net/projects/sevenzip/files/7-Zip/4.52%20beta/7za452.zip/download There is more info here: http://www.dot...
by Harrison Pratt
4 May 2012 19:08
Forum: Visual Prolog
Topic: How to use pointers in VP.
Replies: 21
Views: 5922

Re:

By "pointer" do you mean a number that refers to a location of a data structure in memory, or do you mean the "pointer" is an index to the current position in the Sentence being processed by your clause? Hi Sir; Thank you for you reply. Could you help me to implement this part of code by using argum...
by Harrison Pratt
5 Mar 2012 14:31
Forum: Visual Prolog
Topic: i am asking if it is possible to have a list of questions in a listbox, but only display one question at a time?
Replies: 4
Views: 1444

The best thing is to install the Visual Prolog Examples and work through the ones relevant to your project. These are tiny projects for you to study to see how the various controls should be managed. There are demos for handling lists, buttons, etc. Be prepared to spend some quiet time working throu...
by Harrison Pratt
2 Mar 2012 21:22
Forum: Visual Prolog
Topic: linking different forms in one project
Replies: 6
Views: 1979

You should explicitly destroy your "welcome" dialog window when you display the "diagnosis" window if you have no need for the "welcome" dialog. Sometimes it's better for the user if there aren't too many dialogs popping up and closing. Consider if you might be able to keep all (or specific related ...
by Harrison Pratt
27 Feb 2012 23:12
Forum: Visual Prolog
Topic: linking different forms in one project
Replies: 6
Views: 1979

The first and most important thing is to clearly define (in your own mind, at least) how you will make the "diagnosis." For example, will it be based on ordered probabilities of disease given certain findings, or on a rough set approach using some-of, all-off, none-of a group of findings ... or some...
by Harrison Pratt
22 Feb 2012 16:55
Forum: Visual Prolog
Topic: How assert dynamic facts
Replies: 11
Views: 3314

This may help while you're working on your project:

http://www.softpedia.com/get/System/Fil ... SVed.shtml
by Harrison Pratt
5 Jan 2012 7:20
Forum: Visual Prolog
Topic: varM versus fact-variables
Replies: 15
Views: 4596

Thanks for the discussion everyone! I think I have the concept ... (1) Facts are class or object attributes of interest having some expectation of persistence, including class or object states of immediate or possible future interst.. Using facts for volatile "variable" data that is really of use on...
by Harrison Pratt
2 Jan 2012 15:31
Forum: Visual Prolog
Topic: varM versus fact-variables
Replies: 15
Views: 4596

This still confuses me ... are there performance advantages to using varM or is it a matter of sytactic purity? My practice has been, when necessary, to use an internal database which is not visible or accessible globally. I name these databases something like tempDB and only implement save when I n...
by Harrison Pratt
24 Nov 2011 14:01
Forum: Visual Prolog
Topic: How to check a valid date?
Replies: 11
Views: 3272

Dear George,
I think for the leap year calculation we required one more condition..
Thank you, you are correct! I shouldn't post un-used and un-tested code (see comment in my first post).

Best regards,
Harrison
by Harrison Pratt
23 Nov 2011 16:12
Forum: Visual Prolog
Topic: How to check a valid date?
Replies: 11
Views: 3272

A little more prolog style approach in VIP 5x: predicates valid_date( unsigned, unsigned, unsigned, unsigned, unsigned ) -(i,i,i,i,i) month( unsigned, string, string, string, unsigned ) valid_d( unsigned, unsigned, unsigned ) -(i,i,i) clauses valid_date( YMin, YMax, M,D,Y ):- Y <= YMax, Y >= YMin, v...
by Harrison Pratt
23 Nov 2011 6:51
Forum: Visual Prolog
Topic: How to check a valid date?
Replies: 11
Views: 3272

Check for leap year, old VIP 5.3 style: /****************************************************************************** dte_leapYear( INTEGER YearAsYYYY ) -(i) Suceeds if YYYY is a leap year according to the following: Rules for Leap Year: (1) Year Divisible by 4 is a leap year, but (2) year divisib...
by Harrison Pratt
25 Oct 2011 13:59
Forum: Visual Prolog
Topic: heap overflow error
Replies: 6
Views: 1566

I was reading your mind while I was posting my thoughts! :wink:
by Harrison Pratt
24 Oct 2011 21:46
Forum: Visual Prolog
Topic: heap overflow error
Replies: 6
Views: 1566

Your code is not tail recursive, because the recursive call is not the last clause. There should be no untried solutions when you finally make the recursive call. The stack frame is not discarded before the last recursive call ... so the stack keeps growing. I think your image procesing clauses migh...