Thursday, February 15, 2007

Tip of the Day: Capturing the Value of Form Component IDs

Supported Versions:

. R:BASE 7.6 for Windows (Build: 7.6.1.30214 or higher)
. R:BASE C/S:I 7.6 for Windows (Build: 7.6.1.30214 or higher)
. R:BASE Turbo V-8 for Windows (Build: 8.0.15.30214 or higher)

Did you know that you can capture the value of any DB or Variable
Edit Control's Component ID, if defined, while using the form in
Enter, Edit or Browse mode?

In addition to all Form System Variables, a new RBTI_FORM_COMPID
variable has been added to capture the value of DB or Variable
Edit Component ID, if defined.

Here's a comprehensive list of System Variables used in Forms:

. RBTI_DBGRID_COLUMN
. RBTI_DIRTY_FLAG
. RBTI_FORM_ALIAS
. RBTI_FORM_COLNAME
. RBTI_FORM_COLVALUE
. RBTI_FORM_COMPID
. RBTI_FORM_DATATYPE
. RBTI_FORM_DIRTYVAR
. RBTI_FORM_FORMNAME
. RBTI_FORM_MODE
. RBTI_FORM_TBLNAME
. RBTI_FORM_VARNAME
. RBTI_FORM_VARVALUE

RBTI_DBGRID_COLUMN
This variable holds the name of focused Column on DB Grid.

RBTI_DIRTY_FLAG
Returns 1 if any DB Control value(s) in form were changed
or 0 if nothing was changed.

RBTI_FORM_ALIAS
This variable holds the name of focused form, if used AS
alias.

RBTI_FORM_COLNAME
This variable holds the name of focused column DB Control
on form.

RBTI_FORM_COLVALUE
This variable holds the value of focused column DB Control
on form.

RBTI_FORM_COMPID
This variable holds the value of focused DB/Variable Edit
control's Component ID, if defined.

RBTI_FORM_DATATYPE
This variable holds the data type of focused column DB
Control on form.

RBTI_FORM_DIRTYVAR
Returns 1 if any Variable Control value(s) in form were
changed or 0 if nothing was changed.

RBTI_FORM_FORMNAME
This variable holds the name of the current form. Particularly
useful when using the form-in-a-form technique and multiple
forms are running at the same time.

RBTI_FORM_MODE
This variable holds the value of current mode of the form,
such as ENTER, EDIT or BROWSE.

When the form is brought-up as ENTER USING formname ... the
value for RBTI_FORM_MODE will be returned as 'ENTER'.

When the form is brought-up as EDIT USING formname ... the
value for RBTI_FORM_MODE will be returned as 'EDIT'.

When the form is brought-up as BROWSE USING formname ... the
value for RBTI_FORM_MODE will be returned as 'BROWSE'.

RBTI_FORM_TBLNAME
This variable holds the name of the current table in a form.
This is especially useful when used within a multi-table form.

RBTI_FORM_VARNAME
This variable holds the name of focused Variable Control on
form.

RBTI_FORM_VARVALUE
This variable holds the value of focused Variable Control on
form.

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.
================================================

Reply via email to