Michael S Kluskens wrote: > > At 8:23 AM -0500 9/27/01, Chris Stasny wrote: > >Advantage 3: A program is much more readable if you use the following format: > > > >LOCAL > >DIM xyz AS long // this is a comment about xyz > >DIM a$ // this is about a$ > >LOCAL FN Bubba(h AS HANDLE) > >etc. > > Is there an advantage of doing it that way versus: > > LOCAL FN Bubba(h AS HANDLE) > DIM xyz AS long // this is a comment about xyz > DIM a$ // this is about a$ > etc. > > without the LOCAL? > > Michael > Except for floating point variables I have not yet seen any advantage for one form over the other. I personally prefer declaring my variables in the body of the function, perhaps because it gives me more the feeling of a self contained entity. I would even like to have the possibility to write something like this: CLEAR LOCAL MODE FN Bubba(h AS HANDLE) END FN -- Cheers Alain ----------------------------------------------------- FB^3 in Europe: http://euro.futurebasic.com/ FB II Pouch: http://www.pixmix.com/FB/outils.html -----------------------------------------------------