?? disabling bi-directional cursors.htm
字號:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>Disabling bi-directional cursors</title>
</head>
<body>
<p>Disabling bi-directional cursors<br>
<br>
Topic group<br>
<br>
The UniDirectional property determines whether or not BDE bi-directional cursors are
enabled for a query. When a query returns a result set, it also receives a cursor, or
pointer to the first record in that result set. The record pointed to by the cursor is the
currently active record. The current record is the one whose field values are displayed in
data-aware components associated with the result set抯 data source.<br>
UniDirectional is false by default, meaning that the cursor for a result set can navigate
both forward and backward through its records. Bi-directional cursor support requires some
additional processing overhead, and can slow some queries. To improve query performance,
you may be able to set UniDirectional to true, restricting a cursor to forward movement
through a result set.<br>
<br>
If you do not need to be able to navigate backward through a result set, you can set
UniDirectional to true for a query. Set UniDirectional before preparing and executing a
query. The following code illustrates setting UniDirectional prior to preparing and
executing a query:<br>
<br>
if not (CustomerQuery.Prepared) then begin<br>
<br>
CustomerQuery.UniDirectional := True;<br>
CustomerQuery.Prepare;<br>
end;<br>
CustomerQuery.Open; { returns a result set with a one-way cursor }<br>
<br>
</p>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -