tdataset_active.htm
来自「Absolute Database 5.12 src. Absolute Da」· HTM 代码 · 共 74 行
HTM
74 行
<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 + =
减小字号Ctrl + -
显示快捷键?