I also can't seem to get the substring function to work. When I try:
var part2 = part.substring(0, last);
I get the following exception:
org.mozilla.javascript.EcmaError: TypeError: Cannot find function
substring. (file:///Applications/cocoon-2.1.11/build/webapp/owlTrans/flow/sif.js
#83)
TypeError - context://owlTrans/flow/sif.js - 83:0
Any ideas?
Thanks,
Jeff
On Jul 25, 2008, at 9:45 AM, Joerg Heinicke wrote:
On 25.07.2008 15:56, Jeff Schmitz wrote:
Using cocoon 2.1 I'm trying to get the length of a string in my
flowscript code, but it always returns "undefined" instead of a
number.
I've tried both of the below with the same results:
var part = "this is a test";
var last = part.length();
var last = part.length;
Do the string properties work in flowscript?
part.length should work since your string is a JavaScript object
rather than a Java object.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]