I am using Jess 6.0a3 and am using a query to find a specific fact.  The
query works, the enum has a valid object, but I can't work with the fact
returned.  I am using the following code to get the fact from the
enumeration:

                (bind ?page (call (call ?e nextElement) fact 1))


and then this code to manipulate the fact:

                (modify ?page (onSection ?section))

I get the error:  Message: Not a fact: "<External-Address:jess.Fact>" (type
= EXTERNAL_ADDRESS).

If I use this code to modify instead,

                (modify (call ?page getFactId) (onSection ?section))

I get a different error: Message: Not a fact: "call ?page getFactId" (type =
LIST).

What is odd is that if instead of calling modify I call (retract ?page) the
code experiences no errors.

Any workarounds?  I am executing these calls in a function.

______________________________________________
Matt Bishop - Engineering Manager, UpFront
 
We're Growing - http://www.scenicsoft.com/jobs 


---------------------------------------------------------------------
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