This can be done by binding the entire fact, as in a rule's LHS.

(defquery allPersons ?p <- (Person))

(bind ?res (run-query* allPersons))
(while (?res next)
    (bind ?person (?res get p))
    (modify ?person (visited TRUE))
)


On Mon, Aug 11, 2008 at 12:44 PM, Borislav Bonev <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm trying to write a function that runs a query and after that to
> remove or modify some of the returned facts. And I have a problem with
> retrieving the fact id from the query result. Is there a way to retrieve
> the fact id with run-query* without using the deprecated run-query?
>
> Regards,
> Borislav Bonev
>
>
>
> --------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the list
> (use your own address!) List problems? Notify [EMAIL PROTECTED]
> --------------------------------------------------------------------
>
>


--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to