Static Variable

L

Lee

Hi! Friends.

Can someone helps:

I wish to preserve the value of a variable (say n) each
time I run the procedure, I have:

Sub count()
Static n as integer

n=n+1

end sub

May I know how I can start with an initial value of n
other than 0. I use CALL sub, but doesnt work.

Many thanks.
 
L

Lee

Hi! McGimpsey

Really appreciate your enormous helps. I will try out your
suggestions.
 
Top