BB> I read somewhere that procedures should be STATIC, as in:
BB> SUB DoIt (s$) STATIC
BB> FUNCTION DoItAgain (s$) STATIC
BB> Anybody know what this does and why it matters?
Direct from STATIC Help:
-------------------------8<------------------------
STATIC - BASIC declaration that makes simple variables or arrays
local to a procedure (or a DEF FN function) and preserves
the variable values between procedure calls
-------------------------8<------------------------
I don't believe "should be", but "could be": if
you want the value to remain the same when you call the
procedure again, then STATIC is useful. You can read
more in Help.
FIDO: Bill White @ 1:135/110 (Miami)
InterNet: bill.white@110.sunshine.com
* SLMR 2.1a * She won't last forever, so why give her a diamond?
--- Maximus 2.01wb
---------------
* Origin: Miami Amateur Computer Club BBS/USR Courier V.E (1:135/110)
|