VistaDB 5
Example 






CommandText Property
Gets or sets the text command to run against the data source.
Syntax
'Declaration
 
Public Overrides NotOverridable Property CommandText As System.String
'Usage
 
Dim instance As VistaDBCommand
Dim value As System.String
 
instance.CommandText = value
 
value = instance.CommandText
public override System.string CommandText {get; set;}
public read-write property CommandText: System.String; override; 
public override function get,set CommandText : System.String
public: __property System.string* get_CommandText() override;
public: __property void set_CommandText( 
   System.string* value
) override;
public:
property System.String^ CommandText {
   System.String^ get() override;
   void set (    System.String^ value) override;
}
Example
The following example creates a new command object and associates it with a given VistaDBConnection object
public VistaDBCommand CreateCommand(VistaDBConnection connection)
{
	VistaDBCommand command = new VistaDBCommand();
	command.Connection = connection;
	command.CommandText = "select * from customers";
	return command;
}
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