...
Examples
Example 1
Code Block | ||
---|---|---|
| ||
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 | ||
---|---|---|
| ||
number start; number stop = 3; substring("FooBar", start, stop); // start will default to 0 // will return Foo |
Example 3
Code Block | ||
---|---|---|
| ||
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) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|