📄 tdataset_active.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.Active
<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">Specifies whether or not a dataset is open.
<br>
<br>
<b>property</b> Active: Boolean;
<br>
<br>
<b>Description</b>
<br>
Use Active to determine or set a dataset's connection to data in a database. When Active is False, the dataset is closed; the dataset cannot read data from or write data to the database. When Active is True, data may be read from and written to the database.
<br>
<br>
Setting Active to True
<br>
<br>
Triggers the BeforeOpen event handler if one is defined for the dataset.
<br>
Sets the dataset state to dsBrowse.
<br>
Opens a cursor into the dataset.
<br>
Triggers the After Open event handler if one is defined for the dataset.
<br>
<br>
If an error occurs while opening the dataset, dataset state is set to dsInactive, and the cursor is closed.
<br>
<br>
An application must set Active to False before changing other properties that affect the status of the database or the controls that display data in an application.
<br>
<br>
<b>Note: </b>Calling the Open method sets Active to True; calling the Close method sets Active to False.
<br>
</span>
<!--#include virtual="/inc/footer.php"-->
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -