BIS fnc alignTabs: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
Lou Montana (talk | contribs) (Page filling - missing see also) |
||
Line 1: | Line 1: | ||
{{Function|= Comments | {{Function|= Comments | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 8: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Align two columns divided by tabs. A tab counts for 8 characters. |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | array call [[BIS_fnc_alignTabs]] |= Syntax | ||
|p1= |= Parameter 1 | |p1= array: [[Array]] - in format | ||
<code>[ | |||
["left column 1", "right column 1"], | |||
["left column 2", "right column 2"], | |||
… | |||
]</code> |= Parameter 1 | |||
| |= Return value | | [[String]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code></code> |= | |x1= <code>[ | ||
["Player:", [[str]] [[player]]], | |||
["Name:", [[name]] [[player]]], | |||
["Type:", [[typeOf]] [[player]]], | |||
["Location:", [[str]] [[getPosATL]] [[player]]], | |||
["Direction:", [[str]] [[getDir]] [[player]]] | |||
] [[call]] [[BIS_fnc_alignTabs]];</code> |= Example 1 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |= See also | | |= See also | ||
}} | }} | ||
Revision as of 23:41, 5 May 2018
Description
- Description:
- Align two columns divided by tabs. A tab counts for 8 characters.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- array call BIS_fnc_alignTabs
- Parameters:
- array: Array - in format
[ ["left column 1", "right column 1"], ["left column 2", "right column 2"], … ]
- Return Value:
- String
Examples
- Example 1:
[ ["Player:", str player], ["Name:", name player], ["Type:", typeOf player], ["Location:", str getPosATL player], ["Direction:", str getDir player] ] call BIS_fnc_alignTabs;
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