[futurebasic] [FB] DIMming and FN's

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 1999 : Group Archive : Group : All Groups

From: Russ Pagel <russp@...>
Date: Sun, 14 Nov 1999 17:36:53 -0500
I'm starting my preparations to move to FB^3 and one of the things I've
got to do is clean up my unDIMmed variables.  Here's the question:

I notice in many of the examples and also in your posts that sometimes
variables get DIMmed before the FN statement like this...

DIM MyVariable%
LOCAL FN DoSomething
MyVariable=MyVariable+1
blah
blah
blah
END FN

and other times its done inside the FN like this...

LOCAL FN DoSomething
DIM MyVariable%
MyVariable=MyVariable+1
blah
blah
blah
END FN

What's the difference?

I'd always thought that stuff outside the FN doesn't get executed.  Is
this not the case for dimension statments?

Thanks

rp