Hi.i need help on how to apply retract after diagnosis

Discussions related to Visual Prolog
fred malack
Active Member
Posts: 28
Joined: 9 Mar 2014 6:35

Hi.i need help on how to apply retract after diagnosis

Unread post by fred malack »

Code: Select all

Facts    Symptom:(name,indicator) nondeterm.  
I have number of assert in the code i want to retract
Just after diagnosis please i need help cz i have to implement
It plz...
fr@dlu
User avatar
Thomas Linder Puls
VIP Member
Posts: 1176
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

Code: Select all

retractAll(symptom(_,_))
Regards Thomas Linder Puls
PDC
fred malack
Active Member
Posts: 28
Joined: 9 Mar 2014 6:35

Thanx alot ...

Unread post by fred malack »

Should i put it in a predicate where should i place it sir...
...thanx alooot sir
fr@dlu
fred malack
Active Member
Posts: 28
Joined: 9 Mar 2014 6:35

Thaaanx alot...

Unread post by fred malack »

Thaanx but should i place retractAll(_,_)
Inside a predicate or where should i place it?? :cry:
fr@dlu
fred malack
Active Member
Posts: 28
Joined: 9 Mar 2014 6:35

Hi..i have tried to implement it gives me error

Unread post by fred malack »

Code: Select all

  Facts      Symptom:(name,indicator) nondeterm.   Clauses       retractAll(symptom(_,_)).
That is how i tried to implement retract so it remove all the previous
Data from symptom but it gives me error please i need help to be able to implement
It....
fr@dlu
User avatar
Tonton Luc
VIP Member
Posts: 204
Joined: 16 Oct 2001 23:01

Unread post by Tonton Luc »

Hi,

Make a search of "retractall" or "retractfactDB" on this forum and you will understand better how to use it
...like in this post => http://discuss.visual-prolog.com/viewto ... retractall
User avatar
Thomas Linder Puls
VIP Member
Posts: 1176
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

You can specifically look at: Expert system(medical diagnosis system) (post #41300).
Regards Thomas Linder Puls
PDC
Post Reply