Much better than my 7.6 hack!
Dennis McGrath
Software Developer
QMI Security Solutions
1661 Glenlake Ave
Itasca IL 60143
630-980-8461
[email protected]
________________________________
From: [email protected] [mailto:[email protected]] On Behalf Of John Minyo II
Sent: Tuesday, June 07, 2011 1:41 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Compiler command line switches
At 11:48 AM 06/07/2011, Dan Goldberg wrote:
Does anybody know where to find a list of the compiler command line switches
and format?
I would like to pass a parameter to the application when it opens so it can run
a custom form action.
Hello Dan,
The ability to pass parameters to any R:BASE instance, Runtime, and
compiled application is possible using the "STARTUPPARAMSTRnnn" and
"StartupParamCount" parameters of the GETPROPERTY command.
STARTUPPARAMSTRnnn - Returns the startup parameter value by the number
specified, where "NNNN" in StartupParamStrNNNN is the a number from
0 to STARTUPPARAMCOUNT.
Notes:
. This parameter is used with STARTUPPARAMCOUNT
. if NNNN = 0 (GETPROPERTY APPLICATION StartupParamStr0 VarName),
then VarName will always contain the executable name with path
. if NNNN > STARTUPPARAMCOUNT then VarName will contain the text:
"-ERROR-"
Example to Display Parameters:
Desktop Shortcut Target contains: C:\RBTI\CompApp_ABC.EXE "-v" "-boss"
CLS
CLEAR VAR vCount, vParamStr0, vParamStr1, vParamStr2
GETPROPERTY Application StartupParamCount vCount
GETPROPERTY Application StartupParamStr0 vParamStr0
GETPROPERTY Application StartupParamStr1 vParamStr1
GETPROPERTY Application StartupParamStr2 vParamStr2
SET VAR vMessage = ('EXE NAME : ' + .vParamStr0 + (CHAR(13)) ++
'PARAM 1 : ' + .vParamStr1 + (CHAR(13)) ++
'PARAM 2 : ' + .vParamStr2 + (CHAR(13)))
PAUSE 2 USING .vMessage
SHOW VAR
RETURN
StartupParamCount - Returns the startup parameter count for the
executable.
Notes:
. This parameter is used with STARTUPPARAMSTRnnn
Example:
GETPROPERTY Application StartupParamCount vParamCount
The above examples and many other parameters are available within the
"Application" Category of R:Docs 9.1!
Best regards,
John Minyo II
R:BASE Technologies, Inc.
Customer Service