Friday, December 19, 2008

Tip of the Day #2: Is the Application Compiled 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 R:Compiled 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 R:Compiled 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 compiled or not?

   CLEAR VARIABLE vCompiled
   SET VAR vCompiled TEXT = NULL
   GETPROPERTY APPLICATION ISCOMPILED vCompiled
   IF vCompiled = 'YES' THEN
      PROPERTY AccessDatabaseExplorer VISIBLE 'FALSE'
   ENDIF
   CLEAR VARIABLE vCompiled
   RETURN
-- End

Have fun!

Very Best R:egards,

Razzak.


Reply via email to