ArrayNew
Return new array
Method Signature
Arguments
This function does not accept any arguments
Examples
Create the One dimensional array
Uses the arrayNew function to create the new array
Result: ["All is well", "All is well", "All is well", "All is well"]
Create the Two dimensional array
Uses the arrayNew function to create the new array
Result: [["First value", "First value"],["Second value", "Second value"]]
Create unsynchronized array
Uses the arrayNew function to create the new unsynchronized array
Result: ["one"]
Create an array using implicit notation
Instead of using arrayNew you can also create an array using square brackets.
Result: ["one", "two"]
Create an array with data type
When using data types on array creation, items are converted if possible, otherwise an error is thrown.
Result: [[true,true,true,true,null,true],[true,"true",1,"1",null,"yes"]]
Additional Examples
Related
Last updated
Was this helpful?