[Visual Prolog-Assert]

Reply

Join Date: Aug 2009
Posts: 30
Reputation: RehabReda is an unknown quantity at this point 
Solved Threads: 0
RehabReda RehabReda is offline Offline
Light Poster

[Visual Prolog-Assert]

 
0
  #1
Dec 22nd, 2009
Hi Guys
now i am in a problem
i want to make a program that assert some database and then retract the one which have a specific thing
then display the database after retracting
well i have coded it
but it display the new + the old
i want the new only to be display means after retracting
database-db
anything2(integer,integer,integer)

predicates
nondeterm anything.

clauses


anything:-
anything2(1,X,Y),
retractall(anything2(1,X,Y)),
assert(anything2(3,X,Y)).


goal

  assert(anything2(1,2,3)),assert(anything2(2,2,3)),
  assert(anything2(1,1,3)),anything,anything2(X,Y,Z).
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the Legacy and Other Languages Forum


Views: 531 | Replies: 0
Thread Tools Search this Thread



Tag cloud for Legacy and Other Languages
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC