[<<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
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson