I should add, I have been using Rhino for quite a while now, doing complex asynchronous, event driven scripts. Using lots of Java objects from the environment, etc. Quite the heavy stuff.

But calling functions on string vars just won't work...

- Stu

Stu wrote:
Hi Everyone :)

I have the problem that my script dies whenever i try to do something on a string var, like substring(), charAt() or indexOf().
The following is my very simple text:

  out.chat("bluh");
  var blah = "sjkdjhgv ksdhgf";
  var widuh = blah.indexOf("s"); //blah.charAt(5);
  out.chat("bluh "+widuh);


The out.chat command is from my environment and works under any circumstances. The first text "bluh" is printed out.
But on line 3, the script halts.

Has this problem been seen before with Rhino?

Thanks & Greetings,
Stu
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to