Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Pascal - <b> paramstr get command line parameter pp 144</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PARAMSTR                 Get Command Line Parameter                  pp 144

 Syntax:  ParamStr (IntVar) ;

 Type:    String

 Form:    Function

 Purpose: Returns the specified parameter from the command line.

 Notes:   IntVar is type Integer and specifies which of the parm(s) is to
          be retrieved from the command line.


 ----------------------------------------------------------------------------


 Usage:
       VAR
          IntVar  : Integer                          ; { Integer variable  }
          CmdParm : String [128]                     ; { Parm string       }
          CmdTail : String [128] Absolute Cseg:$0080 ; { Command tail      }

       BEGIN
          IntVar  := ParamCount                      ; { Get parm count    }
          CmdParm := ParamStr (IntVar)               ; { Get last parm     }
          WriteLn (IntVar)                           ; { Display count     }
          WriteLn (CmdParm)                          ; { Display last parm }
          WriteLn (CmdTail)                          ; { Display cmd tail  }
       END.

See Also: Absolute ParamCount

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