Search found 98 matches

by dominique f pannier
27 Jun 2012 8:56
Forum: Visual Prolog
Topic: Radio Button Help!!
Replies: 8
Views: 2568

Hi,
Did you think to experiment the excellent radiobuttondemo project in VIP examples ?
You should find theres the answers to your interrogations.
by dominique f pannier
7 May 2012 15:20
Forum: Visual Prolog
Topic: How to use pointers in VP.
Replies: 21
Views: 5892

As I understand your parser : 1. I cannot find any interest to the concept of pointer : it is mainly done to jump at a location in the memory, and to deal with arrays. And you work at a very higher level : on sentences, and part of sentences. Prolog allows you to build an easier understandable progr...
by dominique f pannier
3 May 2012 17:24
Forum: Visual Prolog
Topic: How to use pointers in VP.
Replies: 21
Views: 5892

Hi, May be is it a simple problem of understanding. Look at the little program below (a console one). If you launch the predicate process1 , you see that, when processing, like told Thomas, when you reach the predicate pred2 with its arguments, the new process which is executed is made by a jump whe...
by dominique f pannier
4 Jan 2012 9:17
Forum: Visual Prolog
Topic: varM versus fact-variables
Replies: 15
Views: 4572

Thanks Steve for you explanation and the link. It gives an interesting conceptual framework of an object , which seems especially designed for VIP... Then now, I think that using varM is not a matter of syntactic purity , like told Harrison. But its simultaneaous usage with fact-variables gives more...
by dominique f pannier
3 Jan 2012 10:22
Forum: Visual Prolog
Topic: varM versus fact-variables
Replies: 15
Views: 4572

:idea:
I got an idea of describing some state of the object.
I supposed I made the calculation of p() predicate. But I need to keep the result for an other one future usage. In that case, I store it in a fact-variable. Is it at something like that you mean ?
by dominique f pannier
3 Jan 2012 10:10
Forum: Visual Prolog
Topic: varM versus fact-variables
Replies: 15
Views: 4572

Thanks for your reply. You are right, Tonton, it's an evident simplification. But about the general case, I'm still in confusion, like Harrison. Thomas gave his opinion, about this subject : http://discuss.visual-prolog.com/viewtopic.php?t=8987&highlight=varm but did not tell his reasons. In that ot...
by dominique f pannier
2 Jan 2012 10:30
Forum: Visual Prolog
Topic: varM versus fact-variables
Replies: 15
Views: 4572

varM versus fact-variables

Hi, First, Happy new year ! I usually used fact-variables to collect informations which have to be handled in a predicate - an object one in the following example: facts f : (string A, string B) nondeterm. clauses f("A1", "B1"). f("A2", "B2"). f("A3", "B3"). facts holder : string_list := []. predica...
by dominique f pannier
9 Dec 2011 15:37
Forum: Visual Prolog
Topic: listViewControl and mouseClickListener
Replies: 3
Views: 1499

Hi tonton, 1) About your problem, yes I made an unverified answer. But I think you can retrieve the column in which you clicked by this way : You can use the getColumn (ColumnPos) predicate of the listViewControl package. When you inserted the columnlist argument, initialized I suppose at 1 : listVi...
by dominique f pannier
8 Dec 2011 14:24
Forum: Visual Prolog
Topic: listViewControl and mouseClickListener
Replies: 3
Views: 1499

Hi, since 8 days, I suppose you solved the problem. For this part of the question : how to retrieve the number of the column that was clicked ? the solution is to use the columnClickListener instead of the mouseClickListener . I suppose it's easy to associate the two listeners and find the complete ...
by dominique f pannier
5 Dec 2011 16:26
Forum: Visual Prolog
Topic: Zooming in the webbrowser ?
Replies: 0
Views: 1194

Zooming in the webbrowser ?

Hi,
I'm using the web browser of VIP for editing my web pages.
The last release of browsers allows the user to zoom into the html page.
Is it a feature the VIP webbrowser can provide, and if yes is it easy to realize or does it require a polynomial :wink: solution ?
by dominique f pannier
19 Oct 2011 13:01
Forum: Visual Prolog
Topic: The condition part of if-then-else may not have a backtrack point
Replies: 1
Views: 992

Hi, Look at the language_reference.pdf page 101: "or" is a nondeterministic construction and a cut can therefore be necessary in many cases to make the code determ. Especially a cut is needed when using "or" in "if-then-else" constructions: clauses p(X) :- if (X = 1 or X > 17),! then ... end if.
by dominique f pannier
7 Oct 2011 9:17
Forum: Visual Prolog
Topic: How to get a data from text file
Replies: 17
Views: 4361

Sorry,
when reading again :
you invert the variables in the isMember predicate
is false : I made a bad reading of your code. But the rest of the post is OK.
by dominique f pannier
7 Oct 2011 9:06
Forum: Visual Prolog
Topic: How to get a data from text file
Replies: 17
Views: 4361

Hi, Your algorithm is right, but : 1.- you need not to declare and write the isMember predicate : you don't use it, because you use the built-in predicate ine the file class : list::isMember . 2.- the error origin is in that part of your code: login(Nama,Password) :- DBNama=[Nama||user(Nama,_,_,_,_,...
by dominique f pannier
6 Oct 2011 9:08
Forum: Visual Prolog
Topic: How to get a data from text file
Replies: 17
Views: 4361

Hi, I don't have any time to guide you to build your whole solution, I can only help you with VIP language. But if you right unserstand how VIP is working, I think there is no problem you cannot solve. First : How to assert when I make an ID and it can not be removed, it will be assert in bottom of ...
by dominique f pannier
3 Oct 2011 8:00
Forum: Visual Prolog
Topic: How to get a data from text file
Replies: 17
Views: 4361

Hi, error c229: Undeclared identifier 'concat/2->' 'consult/2' Theses predicates belong to other classes : class string for concat , class file for consult . Befor using it, you have to open the scope of theses class in the implementation : implement your_class open string, file how can i get the da...