here i am trying to get facts of emp template using query

while getting back the value sof multislot (dept in the example) i am
getting back only the fact which has only one dept value.

how can i get facts with multipule values of dept.

the following is the code i used.

(   deftemplate emp (slot id (type integer))
        (    slot name )
        (multislot dept ))

(defquery empSearch
    (declare (variables ?id))
    (emp (id ?id) (name ?fn) (dept ?dp)) 
    )

bind ?result (run-query* empSearch ?d))

(while (?result next)
    (printout t (?result getString fn) " " 
        (?result getInt id) "  "
        (?result getString dp) crlf))

help me i geting multiple value facts of dept in emp.

thanks in advance

-- 
View this message in context: 
http://www.nabble.com/jess%3Aretrive-values-of-multislot-using-query-result-tf3631096.html#a10139027
Sent from the Jess mailing list archive at Nabble.com.

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