Hi Ted, That's my conclusion too.
Laurie On 22 April 2016 at 12:17, Ted Roche <[email protected]> wrote: > On Thu, Apr 21, 2016 at 6:43 AM, Laurie Alvey <[email protected]> wrote: > > > 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. > > > > "Function argument value, type, or count is invalid" > > And why do you think that is? > > I suspect it's because you can't pass a single array element by > reference, only the array. Passing by reference needs reference toa > *variable* like liCustomerPK. An array element is not a variable. > [excessive quoting removed by server] _______________________________________________ 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/camvtr9ew7krjv3xojc39l2_8sfesy1mjtoyqva5t0kqtnb-...@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.

