Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>returns a command line parameter</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Returns a command line parameter
------------------------------------------------------------------------------

 Syntax

        GT_argv(<nParam>) --> cParam

 Arguments:

      <nParam>  -  The number of the parameter on the command line

 Returns:

      <cParam>  -  The parameter asked for

 Description:

      Return a command line parameter
      Reads the C startup variable to find the specified parameter.

      If <nParam> == 0, the function will return the name of the EXE
      including it's path on non-prehistoric DOSes.

 Examples:

      local i

      for i := 0 to GT_Argc()
          ? "Parameter N. " + str(i, 2) + " = " + GT_Argv(i)
      next
  $CAVEATS$
      Does not check <nParam> is a valid parameter.

 Source: ARGV.C

 Author:  Andy M Leighton

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson