Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Examples

Example 1

Code Block
languagejs
number start;
number stop;
substring("FooBar", start, stop);
// start will default to 0
// stop will default to 6
// substring() will return FooBar
// Result are the same if we initialize start and/or stop with -1

Example 2

Code Block
languagejs
number start;
number stop = 3;
substring("FooBar", start, stop);
// start will default to 0
// will return Foo

Example 3

Code Block
languagejs
string v = "ABCDEFGHIJKLMNOP...";
print(substring(v, 0, 3)); //"ABC" 
print (substring (v, 10, 100 )); //"KLMNOP..."
print(substring(v, 10, -1)); //"KLMNOP..." (same call)

...

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "string_routinefunction" and space = currentSpace ( )
labelsarray_routinesfunctions