Hi all
In beginners guide in page 232 writes about subs and says: In B4A, the parameters are transmitted by value and not by reference. This is true for primitive and non-primitive variable types?
In page 171-172 says: Primitive types are always passed by value to other subs or when assigned to other variables.
All other types, including arrays of primitives types and strings are categorized as non-primitive types. When you pass a non-primitive to a sub or when you assign it to a different variable, a copy of the reference is passed.
Thanks
In beginners guide in page 232 writes about subs and says: In B4A, the parameters are transmitted by value and not by reference. This is true for primitive and non-primitive variable types?
In page 171-172 says: Primitive types are always passed by value to other subs or when assigned to other variables.
All other types, including arrays of primitives types and strings are categorized as non-primitive types. When you pass a non-primitive to a sub or when you assign it to a different variable, a copy of the reference is passed.
Thanks