Show: Delphi C++
Display Preferences

API:IBCustomDataSet.TIBDataSet.PSSetCommandText

From XE2 API Documentation
Jump to: navigation, search

Delphi

procedure PSSetCommandText(const CommandText: string); override;

C++

virtual void __fastcall PSSetCommandText(const System::UnicodeString CommandText)/* overload */;
inline void __fastcall  PSSetCommandText _DEPRECATED_ATTRIBUTE0 (const System::WideString CommandText){ Data::Db::TDataSet::PSSetCommandText(CommandText); }

Properties

Type Visibility Source Unit Parent
procedure
function
protected
IBCustomDataSet.pas
IBCustomDataSet.hpp
IBCustomDataSet TIBDataSet

Description

Assigns a specified SQL command to be executed by PSExecute.

IBCustomDataSet.TIBDataSet.PSSetCommandText inherits from Data.DB.TDataSet.PSSetCommandText. All content below this line refers to Data.DB.TDataSet.PSSetCommandText.

Assigns a specified SQL command to be executed by PSExecute.

If the provider's Options property includes poAllowCommandText, clients can supply an SQL command along with a call to GetRecords or Execute. This command is passed to the dataset by a call to PSSetCommandText, and subsequently executed by a call to PSExecute.

The value of the CommandText parameter replaces the dataset's SQL statement (if it has one), or replaces the name of an underlying database table or stored procedure.

This method is an implementation of the IProviderSupport.PSSetCommandText method and, by default, is blank. To use it, every TDataSet descendant must override it in its specific way.

See Also

Personal tools
Previous Versions
Translations