Jeff Beers

How to assign a string to an array of strings?

Discussion created by Jeff Beers on Feb 21, 2010
Latest reply on Feb 21, 2010 by Tom Sheckells

This should be easy, but I can't get it to work, and can't find a syntax example.  The following syntax compiles, but does not work when executed.


tempstring = " this text ".

stringArr is some fixed array of string.
stringArr[1] = " hello world ".
stringArr[2]  = ( "New string is "  tempstring  "  plus more text ") .


This is the error builder gives:

com.blazesoft.engines.rules.NdEvaluationException: Evaluation error
Expression produces unexpected value: unknown.
unknown while evaluating pStr.$value[1] = " hello world "


What is a syntax that will work here?  Thanks.