Tom,
If you use the 64 bits version of Rbase there are pratical no limitations to the length of the name of a variable. What you could consider is to make a distinction between the various kind of variables. Example: All global variables could start with VG_ or just V_ (V underscore) All local variables could start with VL_ Variables which never change in the application could start with VC_ In this case the only thing you have to do at the end of each procedure is using the statement: clear var VL_% Then all local variables will be cleared. I am using this kind of convention for some years now and it works very fine. Never be surprised by an unexpected value of a variable It also forces you to think about the usage of the kind of variables in a procedure. The nice thing is also that you can see quickly what kind of variable you are looking at Tony From: [email protected] [mailto:[email protected]] On Behalf Of Buddy Walker Sent: zondag 10 augustus 2014 13:00 To: RBASE-L Mailing List Subject: [RBASE-L] - RE: Clearing variables Tom When I used an external form to connect to a database I would clear all variables when finished. The only exception would be the variables I need to control the external form. I always tried to clear variables that I wouldn't need after using the fom_action. If it is the same session of R:Base and you didn't clear the variables then they would be defined. The problem I see with that is a variable may still have a value that you may not be expecting. Buddy From: [email protected] [mailto:[email protected]] On Behalf Of TOM HART Sent: Saturday, August 09, 2014 10:47 PM To: RBASE-L Mailing List Subject: [RBASE-L] - Clearing variables I am in the process of using external forms to run my apps, so that the database will only be connected when a button is pushed. For years I have been running command files and eeps but never clearing the variables. Lately I saw some posts that unused variables should be cleared after being used. So my question is, can I use the 'clear all var' in say an on close eep and do defined variables specific to each connection. Example, maybe I am processing a sales order(where I have used defined variables), then decide to start another sales order(same variables defined), if I finish one order, exit, and clear all variables will they still be defined in the open one. Tom Hart

