FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log inLog in 


How to do this in Visual Prolog (I have the example on SWI Prolog)

Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog
View previous topic :: View next topic  
Author Message
nicoloso100




Joined: 29 Oct 2016
Posts: 1

PostPosted: 29 Oct 2016 3:41    Post subject: How to do this in Visual Prolog (I have the example on SWI Prolog) Reply with quote

Hello community, i am very newbies in prolog but I want to create something, its simple, I just have to type a word in a edit_cl and when I press a buttom, this word have to link with my knowledgebase and add in a listbox_cl the other variable.

the process is similar to this, but in swi prolog:

article(shampoo, cleanliness).
article(apple, food).
article(orange, food).
article(soap, cleanliness).

ask_article(X,Y):- article(X,Y).

and I showld ask like this:

ask_article(Apple, Y).

and it has to show me food.

is the same thing but the word (in this case "apple" like the example) come from an edit_cl, and the answers (in this case food) goes to a listbox_cl

can someone please help me?, y really research a lot but there is very little fast info about visual prolog.
Back to top
View user's profile Send private message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3094

PostPosted: 29 Oct 2016 20:12    Post subject: Reply with quote

The SWI code you present there is quite close to the code in the Fundamental Visual Prolog tutorial.
_________________
Regards Thomas Linder Puls
Prolog Development Center
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum