表示: Delphi C++
表示設定

Data.Win.ADODB.TParameters.AddParameter

提供:XE2 API Documentation
移動: 案内, 検索

Delphi

function AddParameter: TParameter;

C++

TParameter* __fastcall AddParameter(void);

プロパティ

種類 可視性 ソース ユニット
function public
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Data.Win.ADODB TParameters

説明

コレクションに parameter を追加します。

AddParameter メソッドを呼び出すと,1 つの空の TParameter オブジェクトを作成し,それを TParameters コレクションに追加することができます。新しく追加される TParameter オブジェクトのすべてのプロパティはデフォルト値または空のどちらかです。



with ADOStoredProc1.AddParameter do begin
DataType := ftString;
..Direction := pdInput;
Value := 'malathion';
end;



int PCount;
ADOStoredProc1->AddParameter;
PCount = ADOStoredProc1->Parameters->Count - 1;
ADOStoredProc1->Parameters[PCount]->DataType = ftString;
ADOStoredProc1->Parameters[PCount]->Direction = pdInput;
ADOStoredProc1->Parameters[PCount]->Value = "malathion";



関連項目

以前のバージョン
他の言語