RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSetProvider.InternalExecute Method

Provides the underlying implementation of the Execute method.

Pascal
procedure InternalExecute(const CommandText: WideString; var Params: OleVariant); override;
C++
virtual __fastcall InternalExecute(const BSTR CommandText, OleVariant Params);

The Execute method calls InternalExecute to execute the appropriate SQL statement after calling DoBeforeExecute to generate a BeforeExecute event and apply the CommandText and Params. As Implemented in TCustomProvider, InternalExecute does nothing. Descendants override this method to pass the execute command on to an associated dataset. 

CommandText is an SQL statement that replaces the SQL of an associated query, or the name of a stored procedure that replaces the associated stored procedure. This parameter is ignored if the Options property does not include poAllowCommandText. 

On entry, Params supplies parameter values for the query, stored procedure, or CommandText string. On exit, Params returns any output parameters. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!