⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tdataset_fieldvalues.htm

📁 Absolute Database 5.12 src. Absolute Database lets you forget the Borland Database Engine (BDE). Th
💻 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.FieldValues
<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>&nbsp;
     
     </font>
    </td>
  </tr>
</table>
<br><br>



<span style="font-family:Helvetica,Arial; font-size:10pt; color:#000000">Provides access to the values for all fields in the active record for the dataset
<br>

<br>
<b>property</b> FieldValues[<b>const</b> FieldName: <b>string</b>]: Variant; <b>default</b>;
<br>

<br>
<b>Description</b>
<br>
Use FieldValues to read and write values for fields in a dataset. FieldName is the name of a field to read from or write to. 
<br>

<br>
FieldValues reads from and writes to fields whether FieldName represents simple field names, qualified field names for subfields of an object field, or aggregated fields such as can be found in the AggFields property. Due to this flexibility, it is often preferable to use the FieldValues property (or the FieldByName method) rather than the Fields, FieldList, or AggFields properties, all of which present a more limited selection of the dataset's fields.
<br>

<br>
FieldValues accepts and returns a Variant, so it can handle and convert fields of any type. Because FieldValues is the default property for TDataSet, you can omit the property name when referencing this property. For example, the following statements are semantically identical and write the value from an edit box into an integer field:
<br>

<br>
Customers.FieldValues['CustNo'] := Edit1.Text;
<br>
Customers['CustNo'] := Edit1.Text;
<br>

<br>
The next statement reads a string value from a field into an edit box:
<br>

<br>
Edit1.Text := Customers['Company'];
<br>

<br>
<b>Note:
<br>
</b>&nbsp;&nbsp;&nbsp;As FieldValues always uses Variants, it may be a somewhat slower method of accessing data, than using a field's native format (i.e., using a field's AsXXX property), especially in applications processing large amounts of data.
<br>
</span>

<!--#include virtual="/inc/footer.php"--> 
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -