DW> Actually, SWAP works even better on string variables than on numerical
DW> types. With strings, it just fiddles with the pointers, so the actual
DW> text is not rewritten at all. Not only is this fast, it also creates
DW> no "garbage", so string compactions are not caused. ...
Howdy David,
SWAP also works great for whole data structures.
DIM Block(15) AS TypeOne
' As part of a sort routine after comparing Block(X%).Name
SWAP Block(X%), Block(X% + 1)
Chris
--- FMail 0.96â
---------------
* Origin: BIZynet - Worldwide Business via the E-Ways (1:15/55.1)
|