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 <rbase-l@googlegroups.com>
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<mailto: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.


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

2017-03-11 Thread 'Lawrence Lustig' via RBASE-L
You should be able to parse these using the %1 %2 %3 from ancient days. 


At the top SET Var1 = .%1, Var2=.%2, Var3=.%3
I get Unrecognized Global Variable when I try to refer to .%1, etc.--Larry   

-- 
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-11 Thread Albert Berry
You should be able to parse these using the %1 %2 %3 from ancient days. 
At the top SET Var1 = .%1, Var2=.%2, Var3=.%3
Albert
> On Mar 11, 2017, at 12:44 PM, 'Lawrence Lustig' via RBASE-L 
>  wrote:
> 
> I'm learning the compiler.
> 
> When my exe starts, I want to be able to read in some configuration from the 
> command line.  How can my R:Base startup program read the command line 
> arguments?
> 
> (EG, If I run MYCOMPILED.EXE -Menu UserMenu -Level Novice I want to be able 
> to read the -Menu UserMenu -Level Novice in my R:Base code so I can adapt the 
> user interface accordingly).
> 
> --
> Larry
> 
> 
> On Friday, March 3, 2017 8:32 PM, A. Razzak Memon  wrote:
> 
> 
> Friday, March 3, 2017
> 
> A sample application to illustrate the use of MDI Forms and managing MDI Forms
> in a Multi-Monitor environment is now available.
> 
> This application illustrates specific use of PROPERTY and GETPROPERTY commands
> related to MDI Forms and managing MDI Forms in a Multi-Monitor environment.
> 
> R:BASE Sample Applications: http://www.Razzak.com/SampleApplications/ 
> 
> 
> Application Title: Designing & Deploying MDI Applications
> Supported Version: R:BASE X Enterprise (Version 10)
> 
> For your viewing pleasure ...
> 
> http://www.razzak.com/tips/MDI_Forms_01.png 
> 
> http://www.razzak.com/tips/MDI_Forms_02.png 
> 
> http://www.razzak.com/tips/MDI_Forms_03.png 
> 
> http://www.razzak.com/tips/MDI_Forms_04.png 
> 
> http://www.razzak.com/tips/MDI_Forms_05.png 
> 
> http://www.razzak.com/tips/MDI_Forms_06.png 
> 
> http://www.razzak.com/tips/MDI_Forms_07.png 
> 
> http://www.razzak.com/tips/MDI_Forms_08.png 
> 
> 
> Please Note:
> 
> . There are no pre-requisites to install and run this sample application.
> 
> . There is no need to have any version of R:BASE installed on your computer.
> 
> . This application is designed to illustrate the use of MDI Forms and managing
>   MDI Forms in a Multi-Monitor environment using R:BASE X Enterprise 
> (Version 10).
> 
>   In addition ...
> 
> . This compiled and fully secured database and self-running application is
>   provided to demonstrate the use of R:Compiler for R:BASE X Enterprise
>   (Version 10) and the suggested method to design, develop, and distribute
>   your compiled applications for mobile devices, such as Tablet PCs.
> 
> . This complied application also demonstrates the speed of loading your
>   project using R:Compiler for R:BASE X Enterprise (Version 10).
> 
> . You may install this application in a network and MS Cloud environment
>   to really see the performance and capabilities of R:BASE X Enterprise.
> 
> . Mobile PC and/or Touch Screen users may also enjoy the new interface.
> 
> Enjoy the presentation and make sure to have fun!
> 
> Very Best R:egards,
> 
> Razzak.
> 
> P.S. Some users may find this application too overwhelming!
> 
> -- 
> 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 
> .

-- 
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-11 Thread 'Lawrence Lustig' via RBASE-L
I use several different ways to start a compiled app.  1. I just compile my 
external form 2. I also compile a command file to do what I want.  E.G. I have 
a command file that prompts a user ID, depending on the ID it does one of 
several options.



Would like to do it with command-line parameters if possible, so I can set up 
shortcuts to a single EXE and get the different menus and user interface 
without requiring intervention from the user.--Larry   

-- 
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-11 Thread Tom Hart
I use several different ways to start a compiled app.  1. I just compile my
external form 2. I also compile a command file to do what I want.  E.G. I
have a command file that prompts a user ID, depending on the ID it does one
of several options.

Tom Hart

On Sat, Mar 11, 2017 at 1:44 PM, 'Lawrence Lustig' via RBASE-L <
rbase-l@googlegroups.com> wrote:

> I'm learning the compiler.
>
> When my exe starts, I want to be able to read in some configuration from
> the command line.  How can my R:Base startup program read the command line
> arguments?
>
> (EG, If I run MYCOMPILED.EXE -Menu UserMenu -Level Novice I want to be
> able to read the -Menu UserMenu -Level Novice in my R:Base code so I can
> adapt the user interface accordingly).
>
> --
> Larry
>
>
> On Friday, March 3, 2017 8:32 PM, A. Razzak Memon 
> wrote:
>
>
> Friday, March 3, 2017
>
> A sample application to illustrate the use of MDI Forms and managing MDI
> Forms
> in a Multi-Monitor environment is now available.
>
> This application illustrates specific use of PROPERTY and GETPROPERTY
> commands
> related to MDI Forms and managing MDI Forms in a Multi-Monitor environment.
>
> R:BASE Sample Applications: http://www.Razzak.com/SampleApplications/
> 
>
> Application Title: Designing & Deploying MDI Applications
> Supported Version: R:BASE X Enterprise (Version 10)
>
> For your viewing pleasure ...
>
> http://www.razzak.com/tips/MDI_Forms_01.png
> http://www.razzak.com/tips/MDI_Forms_02.png
> http://www.razzak.com/tips/MDI_Forms_03.png
> http://www.razzak.com/tips/MDI_Forms_04.png
> http://www.razzak.com/tips/MDI_Forms_05.png
> http://www.razzak.com/tips/MDI_Forms_06.png
> http://www.razzak.com/tips/MDI_Forms_07.png
> http://www.razzak.com/tips/MDI_Forms_08.png
>
> Please Note:
>
> . There are no pre-requisites to install and run this sample application.
>
> . There is no need to have any version of R:BASE installed on your
> computer.
>
> . This application is designed to illustrate the use of MDI Forms and
> managing
>   MDI Forms in a Multi-Monitor environment using R:BASE X Enterprise
> (Version 10).
>
>   In addition ...
>
> . This compiled and fully secured database and self-running application is
>   provided to demonstrate the use of R:Compiler for R:BASE X Enterprise
>   (Version 10) and the suggested method to design, develop, and distribute
>   your compiled applications for mobile devices, such as Tablet PCs.
>
> . This complied application also demonstrates the speed of loading your
>   project using R:Compiler for R:BASE X Enterprise (Version 10).
>
> . You may install this application in a network and MS Cloud environment
>   to really see the performance and capabilities of R:BASE X Enterprise.
>
> . Mobile PC and/or Touch Screen users may also enjoy the new interface.
>
> Enjoy the presentation and make sure to have fun!
>
> Very Best R:egards,
>
> Razzak.
>
> P.S. Some users may find this application too overwhelming!
>
> --
> 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.
>

-- 
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] - Compiler: How to read command line arguments.

2017-03-11 Thread 'Lawrence Lustig' via RBASE-L
I'm learning the compiler.
When my exe starts, I want to be able to read in some configuration from the 
command line.  How can my R:Base startup program read the command line 
arguments?
(EG, If I run MYCOMPILED.EXE -Menu UserMenu -Level Novice I want to be able to 
read the -Menu UserMenu -Level Novice in my R:Base code so I can adapt the user 
interface accordingly).
--Larry 

On Friday, March 3, 2017 8:32 PM, A. Razzak Memon  wrote:
 

 Friday, March 3, 2017

A sample application to illustrate the use of MDI Forms and managing MDI Forms
in a Multi-Monitor environment is now available.

This application illustrates specific use of PROPERTY and GETPROPERTY commands
related to MDI Forms and managing MDI Forms in a Multi-Monitor environment.

R:BASE Sample Applications: http://www.Razzak.com/SampleApplications/

Application Title: Designing & Deploying MDI Applications
Supported Version: R:BASE X Enterprise (Version 10)

For your viewing pleasure ...

http://www.razzak.com/tips/MDI_Forms_01.png
http://www.razzak.com/tips/MDI_Forms_02.png
http://www.razzak.com/tips/MDI_Forms_03.png
http://www.razzak.com/tips/MDI_Forms_04.png
http://www.razzak.com/tips/MDI_Forms_05.png
http://www.razzak.com/tips/MDI_Forms_06.png
http://www.razzak.com/tips/MDI_Forms_07.png
http://www.razzak.com/tips/MDI_Forms_08.png

Please Note:

. There are no pre-requisites to install and run this sample application.

. There is no need to have any version of R:BASE installed on your computer.

. This application is designed to illustrate the use of MDI Forms and managing
  MDI Forms in a Multi-Monitor environment using R:BASE X Enterprise 
(Version 10).

  In addition ...

. This compiled and fully secured database and self-running application is
  provided to demonstrate the use of R:Compiler for R:BASE X Enterprise
  (Version 10) and the suggested method to design, develop, and distribute
  your compiled applications for mobile devices, such as Tablet PCs.

. This complied application also demonstrates the speed of loading your
  project using R:Compiler for R:BASE X Enterprise (Version 10).

. You may install this application in a network and MS Cloud environment
  to really see the performance and capabilities of R:BASE X Enterprise.

. Mobile PC and/or Touch Screen users may also enjoy the new interface.

Enjoy the presentation and make sure to have fun!

Very Best R:egards,

Razzak.

P.S. Some users may find this application too overwhelming!

-- 
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.