|
Previous Top Next |
Prototype: | (String pFlag),String |
pFlag | Command line flag to test for. |
Returns | The 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