Data.DBXCommon.TDBXConnection.CreateCommand

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Data.DBXCommon.pas
Data.DBXCommon.hpp
Unit: Data.DBXCommon
Parent: TDBXConnection

Delphi

function CreateCommand: TDBXCommand; overload; virtual;

C++

virtual TDBXCommand* __fastcall CreateCommand()/* overload */;

Description

Returns a TDBXCommand instance to execute commands.

This method returns a TDBXCommand instance to execute commands. The TDBXCommand.CommandType property specifies the type of command. Command types are specified in the TDBXCommandTypes class. The default CommandType property setting is TDBXCommandTypes.SQLStatement., an SQL command.

Note: Call TDBXCommand.Free when the TDBXCommand is no longer needed.

See Also