Thanks Razzak
I think this is what I needed too, I was having to click on a filed twice to
make it pick up the correct value.
Marc
----- Original Message -----
From: "A. Razzak Memon" <[EMAIL PROTECTED]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Tuesday, March 20, 2007 8:00 AM
Subject: [RBASE-L] - Tip of the Day: Keeping Track of and Managing RBTI
FormVariables
Tuesday, March 20, 2007
Tip of the Day: Keeping Track of and Managing RBTI Form Variables
Supported Versions:
. R:BASE 7.6 for Windows (Build: 7.6.1.30316 or higher)
. R:BASE C/S:I 7.6 for Windows (Build: 7.6.1.30316 or higher)
. R:BASE Turbo V-8 for Windows (Build: 8.0.15.30316 or higher)
When working on a single form at a time, it is very easy to
keep track and manage the following RBTI Form Variables:
. RBTI_FORM_FORMNAME (TEXT)
. RBTI_DIRTY_FLAG (INTEGER)
. RBTI_FORM_ALIAS (TEXT)
. RBTI_FORM_MODE (TEXT)
. RBTI_FORM_DIRTYVAR (INTEGER)
. RBTI_FORM_TBLNAME (TEXT)
. RBTI_FORM_COLNAME (TEXT)
. RBTI_FORM_COLVALUE (TEXT)
. RBTI_FORM_DATATYPE (TEXT)
. RBTI_FORM_COMPID (TEXT)
However, if you have a situation where a form is called from
within a form, you may have a stack of forms being displayed
on top of each other. RBTI Form Variables defined by the last
form will of course overwrite the results of the previous
form.
So, how do you keep track and manage all resulting variables
for each form separately?
To manage this particular situation, all you need to do is
define form variables with specific form-related expressions
with a unique naming convention.
Here's how:
Assuming you have two forms (FormA and FormB).
01. Define the following expressions for FormA
vFormA_FormName TEXT = (.RBTI_FORM_FORMNAME)
vFormA_DirtyFlag INTEGER = (.RBTI_DIRTY_FLAG)
vFormA_Alias TEXT = (.RBTI_FORM_ALIAS)
vFormA_Mode TEXT = (.RBTI_FORM_MODE)
vFormA_DirtyVar INTEGER = (.RBTI_FORM_DIRTYVAR)
vFormA_TblName TEXT = (.RBTI_FORM_TBLNAME)
vFormA_ColName TEXT = (.RBTI_FORM_COLNAME)
vFormA_ColValue TEXT = (.RBTI_FORM_COLVALUE)
vFormA_DataType TEXT = (.RBTI_FORM_DATATYPE)
vFormA_CompID TEXT = (.RBTI_FORM_COMPID)
02. Define the following expressions for FormB
vFormB_FormName TEXT = (.RBTI_FORM_FORMNAME)
vFormB_DirtyFlag INTEGER = (.RBTI_DIRTY_FLAG)
vFormB_Alias TEXT = (.RBTI_FORM_ALIAS)
vFormB_Mode TEXT = (.RBTI_FORM_MODE)
vFormB_DirtyVar INTEGER = (.RBTI_FORM_DIRTYVAR)
vFormB_TblName TEXT = (.RBTI_FORM_TBLNAME)
vFormB_ColName TEXT = (.RBTI_FORM_COLNAME)
vFormB_ColValue TEXT = (.RBTI_FORM_COLVALUE)
vFormB_DataType TEXT = (.RBTI_FORM_DATATYPE)
vFormB_CompID TEXT = (.RBTI_FORM_COMPID)
Using this technique, all variables will be unique to each
individual form, and you can easily track the status of
each variable when working in a multi-form application.
Enjoy and make sure to have fun!
Very Best R:egards,
Razzak.
--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]
(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body,
place any
text to search for.
================================================