Search found 98 matches

by dominique f pannier
30 Sep 2011 9:38
Forum: Visual Prolog
Topic: How to get a data from text file
Replies: 17
Views: 4506

Hi, sorry, keybord error. how can i get the data in ID = 3? predicates p : (). getUserData : (unsigned, ID, string S1, string S2, unsigned Day, unsigned Month, unsigned Year, string Value). clauses p():- ... getUserData(3, S1, S2, Day, Month, Year, Value), ... getUserData(ID, S1, S2, Day, Month, Yea...
by dominique f pannier
30 Sep 2011 9:18
Forum: Visual Prolog
Topic: How to get a data from text file
Replies: 17
Views: 4506

Hi,
how can i get the data in ID = 3
predicates

clauses
getUserData(
user(3,"Michael","China",1,4,1996,"xxx").
by dominique f pannier
30 Sep 2011 9:06
Forum: Visual Prolog
Topic: if I empty the list of cards, cards that are created are they removed?
Replies: 4
Views: 1345

Hi, we have to clarify some points. First : To declare a variable I am obliged to declare it in "facts" or "class-facts"! variables are not declared in VIP : in your first example, NewCarte is a variable, nowhere declared. jeu52Cartes is a fact-variable, it is declared in the facts section. One vari...
by dominique f pannier
27 Sep 2011 17:04
Forum: Visual Prolog
Topic: if I empty the list of cards, cards that are created are they removed?
Replies: 4
Views: 1345

Hi, What do you store in your list ? If, as I believe, your store objects created with the class carte , you should remenber that with VIP, you don't have to destroy the objects : when they are no more referenced, i.e. when no variable or fact-variable hold them any more, they are automatically garb...
by dominique f pannier
23 Sep 2011 8:40
Forum: Visual Prolog
Topic: how to verify a form is not already open and if so delete it
Replies: 5
Views: 1584

Hi, I think to this way : - in the implementation which creates your form you add a class fact , formAlive for instance, which is a boolean initialized to false() . - in the class of your implementation you declare formAlive as a property . - in the constructor predicate ot the implementation which ...
by dominique f pannier
18 Sep 2011 14:17
Forum: Visual Prolog
Topic: varaible unusual is that annoying?
Replies: 3
Views: 1186

Hi, Marco, There is no memory neither performance problem . But when you receive a warning about an unused variable, you have to pay attention to : 1.- two - or more - identical anonymous variables ( _variable ) in the head and/or the body of a predicate are no more anonymous, they are bound. 2.- yo...
by dominique f pannier
28 Aug 2011 10:07
Forum: Visual Prolog
Topic: Web Services with VisualProlog
Replies: 3
Views: 2669

Hi, Like you can see in Thomas's answer, there are two parts when building such a project. 1. to build a COM object 2. to build the service with Microsoft tools. (I forgott the last solution mentioned by Thomas). About the first step, which is the main one with VIP, I think that with VIP 7 you can b...
by dominique f pannier
22 Jul 2011 17:26
Forum: Visual Prolog
Topic: how to keep the bold caracter when control is enabled
Replies: 2
Views: 1040

Hi,
the principle is the following one:

Code: Select all

setEnabled(false)
the font is color_LightGray, which means that the control is unreacheable.

Code: Select all

setEnabled(true)
the font is color_black, which means that the control is reacheable.