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

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