im sorry but, for the second quastion i indeed have unquoted symbols. but how can i make it quoted since i assert it this way:

r.executeCommand("(assert (h_description "+ RUN.GUI.h_description+ "))");

thanks in advance

From: "Ernest Friedman-Hill" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: JESS: From the database to java variable
Date: Thu, 29 Mar 2007 13:50:06 -0400


On Mar 29, 2007, at 12:51 PM, M Ismail wrote:

Hi,

i store what i have in an xml file, and then later i load this xml file. but i want to know if its possible to get what is in the database back to java variables?
im using templates in Jess.

I'm afraid without some more specifics, I can't quite tell what you're asking.



and my second quastion is: i have a template with a "slot decription", it works fine, but when i put something like "long hair" i get error becouse i have a space, only long_hair work. is there a way to fix this?

I'm assuming you mean something like

(assert (my-template (description long hair)))

There are two different ways you might deal with this, but I would recommend just using double-quoted strings rather than the unquoted symbols you're using -- i.e.,

(assert (my-template (description "long hair")))

But make sure you use quotes always with that slot -- you'll get some weird results if you go back and forth.



---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550                 http://www.jessrules.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]
--------------------------------------------------------------------


_________________________________________________________________
Geen zin in typen? Praten gaat makkelijker. Nu GRATIS bellen! http://get.live.com/messenger/overview

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