VistaDB 5
Example 






The text of the query.
VistaDBCommand Constructor(String)
Initializes a new instance of the VistaDBCommand class with the text of the query.
Syntax
'Declaration
 
Public Function New( _
   ByVal commandText As System.String _
)
'Usage
 
Dim commandText As System.String
 
Dim instance As New VistaDBCommand(commandText)
public VistaDBCommand( 
   System.string commandText
)
public VistaDBCommand( 
    commandText: System.String
); 
public function VistaDBCommand( 
   commandText : System.String
);
public: VistaDBCommand( 
   System.string* commandText
)
public:
VistaDBCommand( 
   System.String^ commandText
)

Parameters

commandText
The text of the query.
Example
The following example creates a new command object and associates it with a given VistaDBConnection object
public VistaDBCommand CreateCommand(VistaDBConnection connection)
{
	return new VistaDBCommand("select * from customers", connection);
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also