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

Reply via email to