Search found 215 matches

by Ferenc Nagy
7 Dec 2012 9:24
Forum: Visual Prolog
Topic: Advanced List handling
Replies: 19
Views: 11136

Are findall and forall deprecated?

Are the old (defined 25 years age on Turbo Prolog) findall and the relative new list::forall predicates deprecated?
by Ferenc Nagy
5 Dec 2012 10:24
Forum: Visual Prolog
Topic: Advanced List handling
Replies: 19
Views: 11136

Other solution of minimum and its index

Thomas, you were overzealous. The list::sort order the whole list which is expensive in case of a long list. I have another idea: MinValue=fold(List, { (Element, Min) = math::min(Element,Min)}, upperBound(<domain of Element>) calculates the minimal value. The next step is the getting of the index: M...
by Ferenc Nagy
5 Dec 2012 7:12
Forum: Visual Prolog
Topic: Advanced List handling
Replies: 19
Views: 11136

How can I select the value and the index of the smallest element in a list?

Please add some more examples to the new list manipulating commands:
E. g.: How can I select the value and the index of the smallest element in a list?
by Ferenc Nagy
18 Oct 2010 7:56
Forum: Visual Prolog Tips & Samples
Topic: RichEdit control
Replies: 8
Views: 15570

Justification

There was a RichEdit example in the version 5.2. The justification of the paragraphs was missing from it. Why? Question to the same 5.2 RichEdit. I'd like to edit Flip Album Vista Pro flp files. One file contains more <RTF> rich text </RTF> blocks. The above RICHEDIT.exe reads whole files. What shou...
by Ferenc Nagy
4 Oct 2010 7:52
Forum: Visual Prolog Tips & Samples
Topic: My dialog tricks
Replies: 10
Views: 16918

My dialog tricks

Hi, It's the time not only to ask something but to publish some tricks about dialog handling. 1. Validation of strings by length [after trimming] and allowed characters. 2. Comparison of two string which should contain V2>=V1 integer values. 3. Easy hangling of DIALOG_INTS e.g. in dialog_..._update ...