[RBASE-L] - Error 2138

2017-03-12 Thread Tom Hart
[image: Inline image 1]
Never had this error message before

Tom Hart

-- 
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 rbase-l+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[RBASE-L] - Re: Compiler: How to read command line arguments.

2017-03-12 Thread Michael Byerley

The significant difference is that you MUST know the position of the string 
you are relating to in the startup string.  

Getting the whole string and parsing it yourself affords you the luxury of 
adding to or deleting from the string with only having to deal with a 
conditional statement to accommodate the change.

If the conditional statement would be encapsulated within a stored 
procedure, there would likely only be one place that would require 
maintenance other than the particular place the conditional statement was 
directed.

RBase certainly gives you the ability to choose what suits you best though.



On Sunday, March 12, 2017 at 12:57:44 PM UTC-4, Michael Byerley wrote:
>
> 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 rbase-l+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [RBASE-L] - Compiler: How to read command line arguments.

2017-03-12 Thread Dan Goldberg
The getproperty command gets the arguments


GETPROPERTY APPLICATION STARTUPPARAMSTRnnn 'varname'

Dan Goldberg

From: rbase-l@googlegroups.com [mailto:rbase-l@googlegroups.com] On Behalf Of 
Michael Byerley
Sent: Sunday, March 12, 2017 9:58 AM
To: RBASE-L 
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 
rbase-l+unsubscr...@googlegroups.com.
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 rbase-l+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.