BIS fnc alignTabs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(Page filling - missing see also)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 8: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Align two columns divided by tabs. A tab counts for 8 characters. |= Description
 
Description:
Align two columns divided by tabs
 
Parameter(s):
0: ARRAY in format
[
["left column 1","righ column 1"],
["left column 2","righ column 2"],
...
]
 
Returns:
STRING
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_alignTabs]]; --> |= Syntax
| 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

Hover & click on the images for description

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

Notes

Bottom Section