RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSetProvider.CreateDataPacket Method

Generates a data packet for the data associated with the provider.

Pascal
procedure CreateDataPacket(PacketOpts: TGetRecordOptions; ProvOpts: TProviderOptions; var RecsOut: Integer; var Data: OleVariant); override;
C++
virtual __fastcall CreateDataPacket(TGetRecordOptions PacketOpts, TProviderOptions ProvOpts, int RecsOut, OleVariant Data);

CreateDataPacket is used internally to generate the data packets that are returned by GetRecords

The PacketOpts parameter indicates what information (other than record values) is included in the data packet. It reflects any Options passed to the GetRecords method. 

The ProvOpts parameter reflects the current value of the Options property. 

The RecsOut parameter specifies the number of records desired in the packet and returns the actual number of records in the generated data packet. 

The Data parameter returns the generated data packet. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!