>>Then, I declare my variables in the ON BEFORE START EEP, and in my ON
CLOSE EEP I do
CLEAR VAR fEdCst_%<<
Dawn,
Does this % represent all open variables for this form? I thought you had to list them:
CLEAR VAR v1,v2,v3 etc.
BC
| "Dawn Oakes"
<[EMAIL PROTECTED]>
Sent by: [email protected] 02/16/2005 01:36 PM
|
|
That's a great idea!
-----Original Message-----
From: Lawrence Lustig [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 16, 2005 1:25 PM
To: RBG7-L Mailing List
Subject: [RBG7-L] - Re: Property problems
> I set all local form variables in the "On Before Start" EEP and clear
> all variables in the "On Close" EEP; in most cases, you can cut your
> defined variables in the "On Before Start" EEP and paste them on the
> "On Close" EEP so you don't have stray variable causing problems down
the line.
I always use a form specific prefix, like fEdCst_ for the EditCustomer
form.
Then, I declare my variables in the ON BEFORE START EEP, and in my ON
CLOSE EEP I do
CLEAR VAR fEdCst_%
This way:
1. I have no spare variables lying around.
2. If I forget to clear them, I know where they came from.
3. I have no worries (well, fewer worries) about variables banging into
each other if I load say, six or eight different forms while the main
one is open.
--
Larry
