Wednesday, November 3, 2010

Visual Basic Operating Environment Function : Command

Purpose : The Command and command$ function return a variant or string that contains any Command-line Parameters used when Visual Basic or the Visual Basic environment Program was started.

Syntax :
Command
Command$

Params$ = Command$

in this example stores command-line parameters for the current program into the string Params$. these functions return any test that followed the CMD parameter on the command line. the string returned by the visual basic environment can be modified by choosing properties from the project menu. When used with a Visual Basic program , Command$ returns any text that followed the executable filename on the command line.

No comments:

Post a Comment