Good Morning Paul,

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 X.5!

Hope it helps!

Very Best R:egards,

Razzak


At 03:59 PM 6/2/2021, [email protected] wrote:

Good afternoon,

I'm using a compiled application to do something NOT RBASE related. I'm using it to use the LAUNCH command to launch 2 separate EXE's. Each of the 2 EXE's allows me to pass command line parameters to startup each EXE. I'm wondering if I could put all the “startup parameters†in the RBASE EXE shortcut and interrogate them inside and pass them appropriately.

Anyone have any experience passes command line parameters when starting up an RBASE EXE?

Thanks in advance,

Paul Buckley

RBASE X.5 Enterprise Version 10.5.3.20517
RBASE X.5 Compiler Version 10.5.3.20517

--
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rbase-l/0MhSU8-1m2S201LX8-00McMF%40mrelay.perfora.net.

Reply via email to