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

📄 83.htm

📁 水木清华的BBS文章
💻 HTM
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>CTerm非常精华下载</title>
</head>
<body bgcolor="#FFFFFF">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="577">
<tr><td width="32%" rowspan="3" height="123"><img src="DDl_back.jpg" width="300" height="129" alt="DDl_back.jpg"></td><td width="30%" background="DDl_back2.jpg" height="35"><p align="center"><a href="http://bbs.tsinghua.edu.cn"><font face="黑体"><big><big>水木清华★</big></big></font></a></td></tr>
<tr>
<td width="68%" background="DDl_back2.jpg" height="44"><big><big><font face="黑体"><p align="center">         Delphi编程                            (BM: strayli FlyingBoy)          </font></big></big></td></tr>
<tr>
<td width="68%" height="44" bgcolor="#000000"><font face="黑体"><big><big><p   align="center"></big></big><a href="http://cterm.163.net"><img src="banner.gif" width="400" height="60" alt="banner.gif"border="0"></a></font></td>
</tr>
<tr><td width="100%" colspan="2" height="454"> <p align="center">[<a href="index.htm">回到开始</a>][<a href="15.htm">上一层</a>][<a href="84.htm">下一篇</a>]
<hr><p align="left"><small>发信人: strayli (stray), 信区: Delphi <br>

标  题: A Technical View of Borland MIDAS (6) <br>

发信站: BBS 水木清华站 (Thu Nov 12 21:55:03 1998) WWW-POST <br>

  <br>

Building the Server Side of a Remote Dataset <br>

In this section,I will describe one possible technique for building a server <br>

for a remote dataset. Here is a quick overview of the steps involved: <br>

  <br>

Start a new application, hook it up to some data as you would in any other <br>

Delphi application, and save it to disk. <br>

Use File | New to create a remote data module. <br>

Place one or more TProvider components on the remote data module. <br>

Hook the TProvider up to a TTable or TQuery object. <br>

Right click on the TProvider to create interface methods for accessing the <br>

provider on a remote machine. <br>

Save your work and run the server once to register it. <br>

In this scenario, you can start by putting the TTable and related objects in <br>

a data module, and putting the providers in a remote data module. You should, <br>

however, in your final product, place the tables and the providers in the <br>

same remote data module. <br>

  <br>

I start with one data module and one remote data module simply because it <br>

gives you a familiar place to begin. It allows you to start with a well-known <br>



standard Delphi application, and then to isolate all the new code in one <br>

place; that is, in the remote data module. Ultimately, however, you should <br>

place both the TTable and TQuery objects directly on the remote data module, <br>

or else you might have synchronization problems. <br>

  <br>

Here is a more detailed example. To get started, construct a standard <br>

database application linking the Customer and Orders table from the DBDEMOS <br>

database. Put the tables on a data module, and just proceed as you would <br>

normally. On the client side, you will arrange these two tables into a <br>

one-to-many relationship, as shown in Figure 2. However, on the server side, <br>

you can simply place the tables on the form and data module and should not <br>

necessarily arrange them in a one-to-many. <br>

  <br>

It is important to note that in many cases you might not even bother to put a <br>

grid on the server side, since the server application is not meant for <br>

viewing or manipulating data. All you really need to do on an application <br>

server is put down some TTable and TQuery objects, and access them via remote <br>

data module. Remember that in your shipping version, you should place the <br>

tables and queries on remote data modules, not on a separate data module. <br>

  <br>

  <br>

  <br>

n remote data modules, not on a separate data module. <br>

  <br>

  <br>

  <br>

-- <br>

※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 202.38.72.60] <br>

</small><hr>
<p align="center">[<a href="index.htm">回到开始</a>][<a href="15.htm">上一层</a>][<a href="84.htm">下一篇</a>]
<p align="center"><a href="http://cterm.163.net">欢迎访问Cterm主页</a></p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -