系统函数 getCmdLineArg 从用于调用 EGL 程序的自变量列表中返回指定自变量。指定自变量返回字符串值形式的自变量。
count int; argument char(20); count = 0; argumentCount = getCmdLineArgCount(); while (count < argumentCount) argument = getCmdLineArg(count) count = count + 1; end
getCmdLineArg 函数仅在 Java™ 环境中受支持。
使用 getCmdLineArgCount 函数来获取调用时传送至 EGL 主程序的自变量或参数的数目。