Using this technique to swap two array elements doesn't work. If you try this:
LOCAL ARRAY a[2] a[1] = 1 a[2] = 2 Swap(@a[1], @a[2])
you'll get Error 11.
Hi Laurie,
The Help file, on the "Passing Data to Parameters" section, says:
"Note: When passing entire arrays to parameters, you must pass them by reference. If you do not pass arrays by reference, only the first element is passed. Therefore, individual array elements are always passed by value"
This was the functionallity from dBase times, and changing between procedures and functions does not make any difference.
Regards.-
2016-04-22 10:59 GMT+02:00 Laurie Alvey trukker41@gmail.com:
I changed the PROCEDURE to a FUNCTION. Same error.
Laurie
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---