TAstaParamList

Methods


 

Unit
AstaParamList

 

Description
A TAstaParamList is similar to the TParams property in the Delphi TQuery except that they can be streamed across the internet and can contain any type of data including binary, other ParamLists and even datasets.. Each Param member is of type
TAstaParamItem which has the following properties:

 

Name: string;

ParamType: TAstaParamType;

DataType: TFieldType;

Null: Boolean;

Size: Integer;

 

This allows the TAstaParamList to be used just like the Delphi TParams. Here are some examples:

 

ParambyName(‘CustomerNumber’).AsInteger := 101;

Params[0].AsInteger := 101;

 

 

Use the TastaParmList.FastAdd to add any kind of data (excluding blob data). It takes a variant as an argument and calls TAstaParamList.Add to automatically add and set the data according to the variant datatype.

 

procedure AddParamsToListFromString(S: string; L: TStrings);

function ParamListToStringFastAdd(const Data: array of Variant): string;

function ParamsFromList(L: TStrings): TStringList;

 



ASTA Overview TAstaParamItem.Value TAstaParamList.AsTokenizedString