The sysLib.getCmdLineArg() system function returns a specified argument from the list of arguments that were used to call the EGL program. The specified argument is returned as a STRING value.
Use sysLib.getCmdLineArgCount() to return the number of arguments available.
sysLib.getCmdLineArg(index INT in)
returns (result STRING)
count INT;
argumentCount INT;
argument[] CHAR(20);
count = 1;
argumentCount = sysLib.getCmdLineArgCount();
while (count < argumentCount)
argument[count] = sysLib.getCmdLineArg(count)
count = count + 1;
end
| Platform | Issue |
|---|---|
| COBOL generation | The sysLib.getCmdLineArg() function is not supported. |
| JavaScript generation | The sysLib.getCmdLineArg() function is not supported. |