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:
http://www.iktek.com
-Message d'origine-
De : friedman_hill ernest j [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 20 juin 2001 20:18
A : Emmanuel Lecharny
Cc : 'Jess Mailing List'
Objet : Re: JESS: in strings
Value.stringValue() will convert almost any kind of Value to a String
Ernest,
Thanks for the reply and I apologize for the typo (oops!). I tried what
you said and still got the null pointer, so I added r.reset() to main()
and everything worked fine. So the working java code would be as follows.
Thanks again,
Ryan
working java code
import jess.*;
public class
Hi Ryan,
The code shown here is pretty close. I see two things wrong with it.
First, the store.clp file contains the definition of a global and of a
rule, but it doesn't do anything about firing the rule; so after
calling (batch), those two things are defined, but the right-hand-side
of the rule