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

📄 disabling bi-directional cursors.htm

📁 宇宙中最强悍的Delphi资料专辑宇宙中最强悍的Delphi资料专辑
💻 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 + -