Difference between revisions of "ArrayAdd"
Line 1: | Line 1: | ||
− | + | {{HelpFiles}} | |
− | {{HelpFiles}} | + | = arrayAdd = |
− | + | Inserts a new item into a specific array. | |
− | + | '''Syntax''' | |
− | + | arrayAdd(array, item) | |
− | + | '''Arguments''' | |
− | + | array: Is an array. | |
− | + | item: Is an expression of any data types defined. | |
− | + | '''Return type''' | |
− | + | empty | |
− | + | '''Examples''' | |
− | '' | + | ''{'' |
− | '' | + | ''number item = 1;'' |
− | '' | + | ''array a = {3, "2"};'' |
− | '' | + | ''arrayAdd(a, item);'' |
− | '' | + | ''print(a);'' |
− | '' | + | ''}'' |
− | '' | + | '''Availability''' |
− | + | Version 4.8 __NOTOC__ <!-- imported from file: 453.htm--> | |
− | + | [[Category:Collection_Functions]] | |
− | |||
− |
Revision as of 09:30, 15 December 2011
arrayAdd
Inserts a new item into a specific array.
Syntax
arrayAdd(array, item)
Arguments
array: Is an array.
item: Is an expression of any data types defined.
Return type
empty
Examples
{
number item = 1;
array a = {3, "2"};
arrayAdd(a, item);
print(a);
}
Availability
Version 4.8