TIP: Click on subject to list as thread! ANSI
echo: quik_bas
to: DAVID WILLIAMS
from: CHRIS GUNN
date: 1998-04-21 17:42:00
subject: Re: using RND

 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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.