- 1、本文档共6页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
TRvCustomConnection组件介绍(国外英文资料)
TRvCustomConnection组件介绍(国外英文资料)
DataRecord, SizeOf (DataRecord), DataRead;
The end;
OnNext
Move the data pointer to the next line
For example:
Procedure tdataform.customcxnnext (Connection: TRvCustomConnection);
The begin
BlockRead (DataFile, DataRecord, SizeOf (DataRecord), DataRead;
The end;
OnEOF
Determine whether the data pointer exceeds the end of the file, which triggers the event if there is no line or has moved to the last line in the OnNext event.
For example:
Procedure tmainform.customcxneof (Connection: TRvCustomConnection; var EOF: Boolean);
The begin
EOF: = DataRead OnGetRow
The event is triggered when the current row data is retrieved. Rave has several ways to write data to a specified buffer. The order and type of the fields must match the definition of the fields provided in the OnGetCols event.
The following is a list of functions that the Connection object provides to write data to the data buffer
Procedure writedata (FormatData: string); {dtString}
Procedure writedata (FormatData: string; NativeData: integer); {dtInteger}
Procedure writedata (FormatData: string; NativeData: Boolean); {dtBoolean}
Procedure writedata (FormatData: string; NativeData: extended); {dtFloat}
Procedure WriteCurrData (FormatData: string; NativeData: currency); {dtCurrency}
Procedure writedata (FormatData: string; NativeData: currency); {dtBCD}
Procedure WriteDateTimeData (FormatData: string; NativeData: TDateTime); {dtDate, dtTime and dtDateTime}
Procedure WriteBlobData (var Buffer; Len: longint); {dtBlob, dtMemo anddtGraphic}
There is a special method, WriteNullData (no parameters), which can be used to contain calls to any field of uninitialized or null data. The FormatData parameter is often used to pass pre-formatted character data for that field.
The NativeData parameter is used to pass unformatted or Raw data from the field, and if the specific format is defined in the Rave report, the format will be applied to NativeData. If no specific format is defined in the Rav
文档评论(0)