next up previous contents
Next: Properties Up: FFish Script Objects Reference Previous: format   Contents


String object

Description

Allows manipulation and formatting of text strings and determination and location of substrings within strings.


Syntax

  1. StringObj[.method]
  2. "String Literal"[.method]


Remarks

You can call any of the methods of the String object using the constructor method new String or using a string literal value. You can convert the value of any object into a string using the String() function. All string indexes are zero-based, the index of the last character for any string x is as this: x.length - 1

Constructor

Description
creates a new String object.


Syntax
new String(value)


Parameters
value
The initial value of the new String object.


Example

s = new String("Hello World");




Subsections

Copyright ©2000-2007 Shanghai TopCMM Software Technologies. All Rights Reserved.