www.icetips.com  Icetips Utilities Documentation 11/30/2010    

Utility Class: GetCommandLineParam

Previous  Top  Next  


Prototype:  (String pFlag),String

 

pFlagCommand line flag to test for.

 

ReturnsThe command line flag or parameter

 

This function parses out a flag in the command line parameters passed when the program starts up.  If an equal sign is used in the parameter, for example /N=Test, the function will return Test only.

 

Example:

 

C    String(255)

ITU  ITUtilityClass

Code

! The program was started with myprog.exe /N=Test /F=myfile.tps /Q

 

C = ITU.GetCommandLineParam('/N')   ! Will return 'Test'

C = ITU.GetCommandLineParam('/F')   ! Will return 'myfile.tps'

C = ITU.GetCommandLineParam('/Q')   ! Will return '/Q'

 

See also:

EXEName - Coreclass

ProgPath - Coreclass

ProgramCommandLine - CoreClass

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/getcommandlineparam_utility.htm