>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 <[email protected]>: > I changed the PROCEDURE to a FUNCTION. Same error. > > Laurie > > --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CAGQ_Jum==m_ju2cax_oqamk-k3cw-5xkub1snx-efby8aw1...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

