advpl array 1

advpl array

Array( < nElementos1 >, [ xElemento2,xElemento3...xElemento16 ] )
// usado na TOTVS

Here is what the above code is Doing:
1. We’re creating a function called “array_merge” that takes two arguments, “array1” and “array2”.
2. We’re creating a variable called “array3” that is an empty array.
3. We’re using a “for” loop to iterate through each element in “array1”.
4. We’re using the “append” method to add each element in “array1” to “array3”.
5. We’re using a “for” loop to iterate through each element in “array2”.
6. We’re using the “append” method to add each element in “array2” to “array3”.
7. We’re returning “array3”.

Similar Posts