Type in the words(s) to search for:

    Mark results
      Userbooster Help

      String Object

      An object representation of the string data type and placeholder for string constants.

      Properties

      type

      Returns a string that represents the current object.

      Methods

      getAt

      Gets a character at the specified position and returns a string with one character.

      Parameters

      nPosition

      required character position in string object.

      setAt

      Sets character(s) at the specified position and returns a reference to the string object.

      Parameters

      nPosition

      required character position in string obj.

      sChars

      character(s) to replace at the specified position.

      size

      Gets string length.

      insert

      Inserts character(s) at the specified position and returns a reference to the string object.

      Parameters

      sChar

      Characters to insert.

      nPosition

      Optional, position in the string object, default is end of string.

      nCount

      Optional, count of characters to insert, default 1.

      erase

      Erases character(s) at the specified position.

      Parameters

      nPosition

      Optional, position in string object, if erase() called without parameters - all string content will be erased.

      nCount

      optional, count of characters to erase, default 1.

      charCode

      Gets character code at the specified position.

      Parameters

      nPosition

      Optional, position in string object, default is 0.

      left

      Gets substring from left part of string.

      Parameters

      nCount

      Count of characters to extract.

      right

      Get substring from right part of string.

      Parameters

      nCount

      Count of characters to extract.

      mid

      Gets substring from middle part of string.

      Parameters

      nPosition

      Position in string object.

      nCount

      Optional, count of characters to extract, default is 1.

      find

      Finds substring in string and returns a numeric position in string (positive or zero if found, negative if not).

      Parameters

      sKey

      String to search.

      nPosition

      Optional, position in string object, default is 0.