RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ADODB.TParameterDirection Enumeration

TParameterDirection specifies the direction of a parameter.

Pascal
TParameterDirection = (
  pdUnknown,
  pdInput,
  pdOutput,
  pdInputOutput,
  pdReturnValue
);
C++
enum TParameterDirection {
  pdUnknown,
  pdInput,
  pdOutput,
  pdInputOutput,
  pdReturnValue
};

ADODB

Use a TParameterDirection value to specify whether a parameter is an input parameter, an output parameter, both, or conveys a return value. 

The constants that make up the TParameterDirection type correspond directly to the ADO ParameterDirectionEnum constants with similar names used for the Direction property of the ADO Parameter object. For instance, the constant pdInput corresponds to the ADO constant adParamInput. For additional information on these ADO constants and their effects, see the Microsoft Data Access SDK help in the topic for the Direction property of the ADO Parameter object. 

TParameterDirection consists of the five constants summarized in the following table:

Parameter Direction 
Meaning 
pdUnknown  
Parameter direction is unknown or cannot be determined.  
pdInput  
Parameter can only be used to convey data to a stored procedure or SQL statement.  
pdOutput  
Parameter can only be used to convey data from a stored procedure or SQL statement.  
pdInputOutput  
Parameter can be used to convey data to or from a stored procedure or SQL statement.  
pdReturnValue  
Parameter is used to convey a return value.  

 

TParameter

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