The Jess function str-cat catenates its arguments and rturns them as a single string:
(call ?res_obj add (str-cat "The result is: " ?res ".")) I think Tom Heinrich wrote: > Hi, > > How can I pass a string consisting of several parts > e.g. "The result is: " ?res "." > to a java method as one parameter? > > I tried something like this: > (call ?res_obj add "The result is: " ?res ".") > > Obviously, Jess recognizes each part of the string as one > parameter although my java method has only one. > > So how can I make Jess treating my multipart string as ONE parameter? > > Thanks for any help. > > CU, > Tom. > > -- > Tom Heinrich > > > -------------------------------------------------------------------- > 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] > -------------------------------------------------------------------- > --------------------------------------------------------- Ernest Friedman-Hill Distributed Systems Research Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 Org. 8920, MS 9012 [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] --------------------------------------------------------------------
