From Bohemia Interactive Community
Hover & click on the images for description
Description
- Description:
- Get a substring out of the string.
- Execution:
- call
- Groups:
- Strings
Syntax
- Syntax:
- [someText, beginning, length] call BIS_fnc_trimString
- Parameters:
- someText: String - source string
- beginning: Number (Optional, default 0) - start index; indexing starts at 0
- length: Number (Optional, default end of string) - end index. A negative number means X chars from the string end
- Return Value:
- String
Examples
- Example 1:
- Example 2:
- Example 3:
Additional Information
- See also:
- select
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here!
Add Note
- R3vo - c
- Posted on Aug 24, 2017 - 15:45 (UTC)
-
The first method is about 18 times faster.