I'm sorry - the (x)Value() functions in Jess 5.x now take a Context
argument - I neglected to put it in. So you would do something like
String text1 = r.fetch("RESULT").stringValue(r.getGlobalContext());
in Jess 5.0a6.
I think Hiong Sen wrote:
>
> I use jess 50a5 and I try this... but there is error...
>
> No method matching stringValue() found in class jess.Value.
> String text1=r.fetch("RESULT").stringValue();
> ^
> so.. I use
> String text1=r.fetch("RESULT").toString().replace('"',' ').trim();
>
> ---
> Riq
>
>
> Ernest Friedman-Hill wrote:
>
> > Yes, the return value of fetch() is Value. Functions can only have one
> > return type, after all - fetch() can't return a different thing for
> > each type you can store.
> >
> > Call stringValue() on the Value you get back:
> >
> > String html_page = r.fetch("RESULT").stringValue();
> >
> > The manual section on store and fetch doesn't explicitly mention this,
> > but I think it follows from the declaration of fetch() and the section
> > about the Value class.
> >
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9214 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
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]
---------------------------------------------------------------------