I 'm new in VIP and I start to read and make exercise with "Visual Prolog for beginners".
I encounter a compilation pb with exercise with "GetString exercise (p38 of this book)".
(see code below from Taskwindows.pro)
Code: Select all
predicates
onMessagesGetstring : window::menuItemListener.
clauses
onMessagesGetstring(_Source, _MenuTag) :-
AnswerString = getString("Title", "Question", "Preset Answer"), !,
note("Your answer is ...", AnswerString).
[u]onMessagesGetstring[/u](_Source, _MenuTag) :-
note("You clicked the <Cancel> button").
the compiling error is :
e283 Undeclared predicate or fact 'onMessagesGetstring/2' TaskWindow.pro TaskWindow\
I wonder if "onMessagesGetstring" still in use ?
Is there another instruction for this ?
By the way, could you tell me where I can find all the classes for VIP and their descriptions ?
Thanks you for your help.
Regards.
Jeangil