The getproperty command gets the arguments

GETPROPERTY APPLICATION STARTUPPARAMSTRnnn 'varname'

Dan Goldberg

From: [email protected] [mailto:[email protected]] On Behalf Of 
Michael Byerley
Sent: Sunday, March 12, 2017 9:58 AM
To: RBASE-L <[email protected]>
Subject: [RBASE-L] - Compiler: How to read command line arguments.

This was started by Larry Lustig in the previous thread.

This code segment could be placed anywhere relative to its purpose.
Function declarations ONLY need to be done ONCE in an RBase session.
Once declared, the DLCall rbase function can be used anywhere, anytime in an 
RBase session.

{Begin Code}


{ Original Win32 Function Declaration: LPTSTR WINAPI GetCommandLine(void);}

-- How to declare function in RBase:


IF (CHKFUNC('GetCommandLine')) = 0 THEN
  STDCALL FUNCTION 'GetCommandLineA' alias 'GetCommandLine' () : TEXT
ENDIF


SET VAR vText TEXT = NULL

SET VAR vText = (DLCALL('Kernel32', 'GetCommandLine'))

PAUSE 2 USING .vText

RETURN

{End Code}
--
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]<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to