LOCAL sort$(), ndx%() FOR I = 0 TO IndexTop% : PRINT Index%(I) : NEXT DIM sort$(4, IndexTop%), ndx%(MaxIndexes%) FOR I = 0 TO IndexTop% : PRINT Index%(I) : NEXT
|
FOR I = 0 TO IndexTop% : SWAP Index%(I),ndx%(I) : NEXT
tmp%() = Index%() : Index%() = ndx%() : ndx%() = tmp%()
|
|
SWAP globalarray(),localarray() : REM Don't do this! globalarray() = localarray() : REM This is OK
|