getCmdLineArgCount()

系统函数 SysLib.getCmdLineArgCount 返回用于启动 EGL 主程序的自变量的数目。

  SysLib.getCmdLineArgCount( )
  returns (result INT)
result
result 是自变量的数目。
以下代码示例循环使用自变量列表:
count int;
argument char(20);

count = 0;
argumentCount = SysLib.getCmdLineArgCount();

while (count < argumentCount)
   argument = SysLib.getCmdLineArg(count)
   count = count + 1;
end
    

SysLib.getCmdLineArgCount 函数仅在 Java™ 环境中受支持。

使用 SysLib.getCmdLineArg 函数从 EGL 程序涉及的自变量列表中获取指定自变量。

相关概念
EGL 函数的语法图

相关参考
EGL 库 SysLib
getCmdLineArg()

使用条款 | 反馈
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.