can you check for assignment?
Is it possible to check if a *local* variable has been assigned a value
without crashing the program if false, as in the following example?
procedure get_this(integer info)
integer last_time
if info = last_time then
do_this
else
do_that
end if
last_time = info
end procedure
This proc would crash on the *first* use. I tried
if integer(last_time)
which also crashes.
I don't really want to declare last_time as global because I have far too
many globals already (which I'm trying to tidy up).
Does declaring last_time invalidate my cause anyway, i.e. will it's value be
cleared everytime the proc is run?
Thanks
Terry
|
Not Categorized, Please Help
|
|