Search found 287 matches

by Harrison Pratt
6 Nov 2012 13:21
Forum: Visual Prolog
Topic: Disappearing commas in Editor window
Replies: 3
Views: 1371

Andale Mono works well for code.
by Harrison Pratt
25 Oct 2012 22:31
Forum: Visual Prolog
Topic: Visual prolog 7.3 is generating the wrong result for adding two values..
Replies: 18
Views: 4745

George, I think you have been seduced by the legacy VIP 5.2 application's behavior, which outputs the result you expect in the desired "apparent" precision when testing it in the File | New (F7) mode. VIP 7.x encourages you to take responsibility for the precision of your floating point output, whic...
by Harrison Pratt
25 Sep 2012 22:38
Forum: Visual Prolog
Topic: Help!!
Replies: 1
Views: 1264

Re: Help!!

Hint: (1) You have declared three different types of possible emissions as facts. (2) You have defined two "rules" for what was detected, but those rules have no way of knowing what emissions were observed. That is, there is no way to input the observed ray emissions to the rule. Think about rewriti...
by Harrison Pratt
3 Aug 2012 12:22
Forum: Visual Prolog
Topic: Using 7z.dll
Replies: 4
Views: 1718

7Za is a single file, stand-alone executable that doesn't require the other support files used by 7Z. It runs from my application's executable directory.
by Harrison Pratt
2 Aug 2012 16:43
Forum: Visual Prolog
Topic: Using 7z.dll
Replies: 4
Views: 1718

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: 6643

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: 1583

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: 2164

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: 2164

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: 3616

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: 5044

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: 5044

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: 3603

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: 3603

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: 3603

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...