Static Variable

  • Thread starter Thread starter Lee
  • Start date Start date
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.
 
Back
Top