BIS fnc trimString: Difference between revisions
| mNo edit summary | Killzone Kid (talk | contribs)   (example correction) | ||
| Line 37: | Line 37: | ||
| |x1= <code>hint (["dreaded_is_the_man", 0, 6] call BIS_fnc_trimString);</code>This will show a hint with "dreaded" |= | |x1= <code>hint (["dreaded_is_the_man", 0, 6] call BIS_fnc_trimString);</code>This will show a hint with "dreaded" |= | ||
| |x2= <code>hint (["dreaded_is_the_man", 15 | |x2= <code>hint (["dreaded_is_the_man", 15] call BIS_fnc_trimString);</code>This will show a hint with "man" |= | ||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 14:22, 18 October 2015
 
Description
- Description:
- /* Description: Get a substring out of the string. Parameter(s): 1: STRING - source string 2: NUMBER (optional, default 0) - start index; * indexing starts at 0 3: NUMBER (optional, default end of string) - end index * negative number means -X chars from the string end Returns: STRING */ (Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- Syntax needed
- Return Value:
- Return value needed
Examples
- Example 1:
- hint (["dreaded_is_the_man", 0, 6] call BIS_fnc_trimString);This will show a hint with "dreaded"
- Example 2:
- hint (["dreaded_is_the_man", 15] call BIS_fnc_trimString);This will show a hint with "man"
Additional Information
- See also:
- See also needed
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
 
	