RBTI has added 2 new form system variables, one for forms and one for external 
forms.

RBTI_FORM_DSGN    TEXT    =  YES    
RBTI_FORM_EXT_DSGN   TEXT   =  YES

I was puzzling how I could use these since they only exist if a form is open in 
design mode.

Here is what I came up with:

SET VAR vInDesign TEXT = . RBTI_FORM_DSGN
IF vInDesign = 'YES' THEN
     --code to run in design
ELSE
   --code to run when live.
ENDIF

This works because, if the RBTI variable does not exist, vInDesign will hold 
the string ".RBTI_FORM_DSGN"

One thing to remember: If ANY form is open in design this variable is set, so 
be aware if you decide to run test code from the R> prompt.
This makes excellent debugging sense once you understand what is happening.

Dennis McGrath
Software Developer
QMI Security Solutions
1661 Glenlake Ave
Itasca IL 60143
630-980-8461
[email protected]


Reply via email to