Within BASIC, try

array(x)=BITXOR(array(x),array(y));
array(y)=BITXOR(array(y),array(x));
array(x)=BITXOR(array(x),array(y));

No temp variable used.


At 01:38 PM 02/13/2004, you wrote:
Is there a command to swap two array contents?

Like "matswap" array(x,y)  will swap the contents of
array(x) -> array(y)
and array(y) -> array(x)

Without using a temp varible. Yes I know I can do it
that way.

Thanks
George

George Gallen
Senior Programmer/Analyst
Accounting/Data Division
[EMAIL PROTECTED]
ph:856.848.1000 Ext 220

SLACK Incorporated - An innovative information, education and management
company
http://www.slackinc.com

--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users

-- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users

Reply via email to