Hi, I've been writing my own userfunctions in Java for Jess and have
managed fine returning strings, integers and doubles to Jess but now I
want to return an array but have come stuck and don't know the syntax well
enough to know how to do it. Error = "The constructor Value(String[], int)
is undefined". Once I pass back my Java array of type String to my Jess
code I will be hoping to iterate through it. Thanks.

------------------------------------------------
public Value call(ValueVector vv, Context c) throws JessException {
        String s = vv.get(1).stringValue(c);
        int i = vv.get(2).intValue(c);
        String list[] = splitMessage(s, i);
        return new Value(list, RU.LIST);
}
------------------------------------------------

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