Prolog findall function XPCE

142 Views Asked by At
:-consult('external data base.pl').

listaw:-
    new(SS, dialog('Rekordy w bazie wiedzy')),
    send(SS, display, new(W3,text('some text'))),
    new(M,menu(von,cycle)),
    findall(B,failure(B,_,_),Y),
    send_list(M, append, Y),
    send(SS,open).

with external Data base with facts: failure(aaa,bwww,cdd).

I have error:

26 ?- listaw. ERROR: Arguments are not sufficiently instantiated ^ Exception: (18) pce_util:send_list(user:@18495295/menu, append, _G534) ?

What is the problem? When I have all facts in the same file with code above, everything works... but I want to use external data base...enter code here

0

There are 0 best solutions below