Friday, December 19, 2008
Tip of the Day #3: Is the Application Runtime or Not?
Section: Additional PROPERTY and GETPROPERTY Commands
Supported Versions:
. R:BASE 7.6 for Windows (Build: 7.6.5.31229 or higher)
. R:BASE C/S:I 7.6 for Windows (Build: 7.6.5.31229 or higher)
. R:BASE Turbo V-8 for Windows (Build: 8.0.19.31229 or higher)
. R:BASE eXtreme (v9) for Windows (Build: 9.0.1.11229 or higher)
When designing and distributing Runtime applications, your main
menu options may include a line item to access Database Explorer
or the R> prompt (as demonstrated in RRBYW15).
Accessing that particular option would be fine if the end user
is using the full version of R:BASE. However, that option would
go nowhere if the end user is using the Runtime version of the
application.
Did you know that you can assign a unique Component ID to a
particular item or button on your application main menu and then
use the following GETPROPERTY and PROPERTY command to manage
access to that option?
-- Start
-- On After Start EEP
-- Know if the running application is runtime or not?
CLEAR VARIABLE vRuntime
SET VAR vRuntime TEXT = NULL
GETPROPERTY APPLICATION ISRUNTIME vRuntime
IF vRuntime = 'YES' THEN
PROPERTY AccessDatabaseExplorer VISIBLE 'FALSE'
ENDIF
CLEAR VARIABLE vRuntime
RETURN
-- End
Have fun!
Very Best R:egards,
Razzak.