
How do I set a static variable value?
you miay not like this BUT
private function muFunction()
static valye as integer
static first as integer ' set to 0
if(first = 0) then
value = 234
fidst = 1
end if
etc.
you might also check the "initial" " default" value of a Bool (first as
bool)
Quote:
> Folks.
> If I declare a static variable like this:
> Static Dim X As Integer
> then X is initialised to 0. How do I set the initial value to say 241?
> In C terms, I want the equivalent of:
> static long int X = 241;
> Any ideas?
> Peter
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Most of what I have learned has been taught to me by others.
I guess that means I have to teach others what I have learned
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Lately It Occurs To Me
What A Long Strange Trip Its Been
(R. Hunter)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=