📄 tdataset_getfielddata.htm
字号:
<html>
<head>
<title></title>
</head>
<!--#include virtual="/inc/header.php"-->
<table width="100%" border="0" cellspacing="0" cellpadding="2" bgcolor="#FFFFFF">
<tr>
<td align="left">
<span style="font-family:Helvetica,Arial; font-size:12pt; color:#000000"><b>TDataSet.GetFieldData
<br>
</b><span style="font-family:Helv; font-size:9pt; color:#000000"><span style="font-family:Helv; font-size:9pt; color:#7F0000"><a href=tdataset.htm>TDataSet</a></span></span><span style="font-family:Helvetica,Arial; font-size:12pt; color:#000000"><b>
<br>
</b></span></span>
</td>
<td align="right">
<font face="Arial" size="2">
<a href="overview.htm">Top</a>
</font>
</td>
</tr>
</table>
<br><br>
<span style="font-family:Helvetica,Arial; font-size:10pt; color:#000000">Retrieves the current value of a field into a buffer.
<br>
<br>
<b>function </b>GetFieldData(FieldNo: Integer; Buffer: Pointer): Boolean; <b>overload; virtual;</b>
<br>
<b>function </b>GetFieldData(Field: TField; Buffer: Pointer): Boolean; <b>overload; virtual;</b>
<br>
<b>function </b>GetFieldData(Field: TField; Buffer: Pointer; NativeFormat: Boolean): Boolean; <b>overload; virtual;</b>
<br>
<br>
<b>Description</b>
<br>
Most applications do not need to call GetFieldData. TField objects call this method to implement their GetData method.
<br>
<br>
The Field or FieldNo parameter indicates the field whose data should be fetched. Field specifies the component itself, while FieldNo indicates its field number. The Buffer parameter is a memory buffer with sufficient space to accept the value of the field as it exists in the database (unformatted and untranslated). NativeFormat indicates whether the dataset fetches the field in Delphi's native format for the field type. When NativeFormat is False, the dataset should convert the field value to the native type. This allows the field to handle data from different types of datasets (ADO-based, BDE-based, and so on) in a uniform manner.
<br>
<br>
GetFieldData returns a value that indicates whether the data was successfully fetched.
<br>
<br>
As implemented in TDataSet, GetFieldData always returns False, indicating that no data was fetched from the specified field. Descendants override this method to fetch data in whatever way is appropriate to the implementation of the dataset.
<br>
</span>
<!--#include virtual="/inc/footer.php"-->
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -