Data.Win.ADODB.TParameter.DataType

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: published
Source:
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Unit: Data.Win.ADODB
Parent: TParameter

Delphi

property DataType: TDataType read GetDataType write SetDataType default ftUnknown;

C++

__property TDataType DataType = {read=GetDataType, write=SetDataType, default=0};

Description

Indicates the type of value the parameter represents.

Set DataType to reflect the data type of the value the parameter represents. The default value of DataType is ftUnknown.

Read DataType to discover the type of data that was assigned to the parameter. Each possible value of DataType corresponds to a type of table field.



ADOStoredProc1.Parameters.Items[0].DataType := ftString;



ADOStoredProc1->Parameters->Items[0]->DataType = ftString;



See Also