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.

_______________________________________________
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/cacw6n4smndutw8ea4mrx0qdsvdrp0ksonqqapx2nmgh8clc...@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.

Reply via email to