📄 tdataset_autocalcfields.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.AutoCalcFields
<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">Determines when the OnCalcFields event is triggered.
<br>
<br>
<b>property</b> AutoCalcFields: Boolean;
<br>
<br>
<b>Description</b>
<br>
Set AutoCalcFields to control when the OnCalcFields event is triggered to update calculated fields during dataset processing. A calculated field is one that derives its value from the values of one or more fields in the active record, sometimes with additional processing.
<br>
<br>
When AutoCalcFields is True (the default), OnCalcFields is triggered when:
<br>
<br>
The dataset is opened.
<br>
The dataset is put into dsEdit state.
<br>
Focus moves from one visual control to another, or from one column to another in a data-aware grid and modifications were made to the record.
<br>
A record is retrieved from a database.
<br>
<br>
If an application permits users to change data, OnCalcFields is frequently triggered. In these cases an application may set AutoCalcFields to False to reduce the frequency with which AutoCalcFields is called. When AutoCalcFields is False, OnCalcFields is not called when changes are made to individual fields within a record.
<br>
</span>
<!--#include virtual="/inc/footer.php"-->
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -