At 10:29 AM 12/29/2008, John Engwer wrote:
If I understand this new feature correctly, I should be able
to access R> and RBASE Explorer from my compiled application.
Unfortunately I cannot get it work. I took the V8 SAT class
last year but I do not have the example in RBY15 to look at.
Can someone give me the process for making this feature to
work.
John,
FYI, similar to Runtime applications, R:Compiled applications
using R:Compiler 7.6 or Turbo V-8 does NOT have access to the
R> Prompt, Form Designer, Label Designer, or Report Designer.
When designing and distributing R:Compiled applications, your
main menu options may include an item to access the Database
Explorer or R> prompt.
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.
In a combined environment where some end users are using the
full version of R:BASE and a few are using the R:Compiled
application with the same database and/or external form, you
may take advantage of the GETPROPERTY APPLICATION ISCOMPILED
command to manage the access to the R> prompt or DB Explorer.
-- Example:
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
When using the same database (with internal/external form),
all users running a full version of R:BASE will have the
access to the menu option for R> Prompt or DB Explorer.
However, any user running the R:Compiled application will
NOT have the access to the menu that switches them to the
R> Prompt or Database Explorer.
Hope that explains the proper use and the technique behind
the "GETPROPERTY APPLICATION ISCOMPILED vCompiled" command.
Very Best R:egards,
Razzak.
P.S.
Check your mailbox for a link to RRBYW15 that demonstrates
the use of such feature. Enjoy!