Next Topic

Previous Topic

Book Contents

GetArgument

string GetArgument(int iNumber)

Return values

A argument passed by calling application.

Parameters

  • iNumber - An zero based index of the argument to retrieve. The max number of arguments can be determined by calling GetArgumentCount.

Remarks

A calling application can pass a number of arguments to a Lua script to customize its behaviour. With this function and the related GetArgumentCount the programmer can extract the arguments.