Class TSDParam (unit SDQuery)

Inherits from

TObject

Constructors


constructor Create(AParamList: TSDParams; AParamType: TSDParamType);

TSDParam


Functions

procedure Assign(Source: TPersistent);


procedure AssignParam(Param: TSDParam);


procedure Clear;


destructor Destroy;


procedure GetData(Buffer: Pointer);


function GetDataSize: Word;


procedure LoadFromFile(const FileName: string);


procedure LoadFromStream(Stream: TStream);


procedure SetData(Buffer: Pointer);


procedure AssignField(Field: TSDField);


function GetAsBoolean: Boolean;


function GetAsDateTime: TDateTime;


function GetAsFloat: Double;


function GetAsInteger: Longint;


function GetAsString: string;


function GetParamName: string;


procedure SetAsBCD(Value: Double);


procedure SetAsBoolean(Value: Boolean);


procedure SetAsCurrency(Value: Double);


procedure SetAsDate(Value: TDateTime);


procedure SetAsDateTime(Value: TDateTime);


procedure SetAsFloat(Value: Double);


procedure SetAsInteger(Value: Longint);


procedure SetAsSmallInt(Value: LongInt);


procedure SetAsString(const Value: string);


procedure SetAsTime(Value: TDateTime);


procedure SetAsWord(Value: LongInt);


procedure SetDataType(Value: TSDFieldType);


procedure SetParamName(const Value: string);


procedure SetText(const Value: string);


procedure AccessError;


procedure InitValue;


function IsValidFloat(const Value: string; var RetValue: Double): Boolean;


function IsValidInt(const Value: string; var RetValue: LongInt): Boolean;


procedure LoadFromBitmap(Bitmap: TBitmap);


procedure LoadFromBlob(Blob: TSDBlobField);


procedure LoadFromStrings(Strings: TStrings);


Properties

property AsBCD : Double


property AsBoolean : Boolean


property AsCurrency : Double


property AsDate : TDateTime


property AsDateTime : TDateTime


property AsFloat : Double


property AsInteger : LongInt


property AsSmallInt : LongInt


property AsString : string


property AsTime : TDateTime


property AsWord : LongInt


property Bound : Boolean


property DataType : TSDFieldType


property IsNull : Boolean


property Name : string


property ParamType : TSDParamType


property Text : string


Events

Variables

FBound : Boolean;


FData : TSDParamRec;


FDataType : TSDFieldType;


FName : string;


FNull : Boolean;


FParamList : TSDParams;


FParamType : TSDParamType;


FString : PString;



Constructors


constructor Create(AParamList: TSDParams; AParamType: TSDParamType);

TSDParam


Functions


procedure Assign(Source: TPersistent);


procedure AssignParam(Param: TSDParam);


procedure Clear;


destructor Destroy;


procedure GetData(Buffer: Pointer);


function GetDataSize: Word;


procedure LoadFromFile(const FileName: string);


procedure LoadFromStream(Stream: TStream);


procedure SetData(Buffer: Pointer);


procedure AssignField(Field: TSDField);


function GetAsBoolean: Boolean;


function GetAsDateTime: TDateTime;


function GetAsFloat: Double;


function GetAsInteger: Longint;


function GetAsString: string;


function GetParamName: string;


procedure SetAsBCD(Value: Double);


procedure SetAsBoolean(Value: Boolean);


procedure SetAsCurrency(Value: Double);


procedure SetAsDate(Value: TDateTime);


procedure SetAsDateTime(Value: TDateTime);


procedure SetAsFloat(Value: Double);


procedure SetAsInteger(Value: Longint);


procedure SetAsSmallInt(Value: LongInt);


procedure SetAsString(const Value: string);


procedure SetAsTime(Value: TDateTime);


procedure SetAsWord(Value: LongInt);


procedure SetDataType(Value: TSDFieldType);


procedure SetParamName(const Value: string);


procedure SetText(const Value: string);


procedure AccessError;


procedure InitValue;


function IsValidFloat(const Value: string; var RetValue: Double): Boolean;


function IsValidInt(const Value: string; var RetValue: LongInt): Boolean;


procedure LoadFromBitmap(Bitmap: TBitmap);


procedure LoadFromBlob(Blob: TSDBlobField);


procedure LoadFromStrings(Strings: TStrings);


Properties


property AsBCD : Double


property AsBoolean : Boolean


property AsCurrency : Double


property AsDate : TDateTime


property AsDateTime : TDateTime


property AsFloat : Double


property AsInteger : LongInt


property AsSmallInt : LongInt


property AsString : string


property AsTime : TDateTime


property AsWord : LongInt


property Bound : Boolean


property DataType : TSDFieldType


property IsNull : Boolean


property Name : string


property ParamType : TSDParamType


property Text : string


Events


Variables


FBound : Boolean;


FData : TSDParamRec;


FDataType : TSDFieldType;


FName : string;


FNull : Boolean;


FParamList : TSDParams;


FParamType : TSDParamType;


FString : PString;