JESS: in strings

2001-06-20 Thread Emmanuel Lecharny
Hi, just a question about strings and : I want to store a string and fetch it from a Java program. This string contains some , as it is a subset of HTML tags (ie : a href=link ...) I bound a variable to this string : (bind ?a a href \link\) and stored it : (store a-tag ?a) If I printout it :

Re: JESS: in strings

2001-06-20 Thread ejfried
Value.stringValue() will convert almost any kind of Value to a String, including floats, so why not use it? public String stringValue(Context c) throws JessException { switch (m_type) { case RU.ATOM: case RU.STRING: case RU.VARIABLE: case RU.MULTIVARIABLE:

RE: JESS: in strings

2001-06-20 Thread Emmanuel Lecharny
Well, hmm, yes, this is what I actually use, and it works pretty well. I didn't want to use it in the first place (the dark side of the force is always tempting ;), but I must admit that it was a mistake. Thanks a lot for the quick answer. Emmanuel Lecharny, IKTEK 06 08 33 32 61, www.iktek.com