📄 87.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="88.htm">下一篇</a>]
<hr><p align="left"><small>发信人: strayli (stray), 信区: Delphi <br>
标 题: A Technical View of Borland MIDAS Part II (3) <br>
发信站: BBS 水木清华站 (Thu Nov 12 22:13:04 1998) WWW-POST <br>
<br>
The Briefcase Model <br>
<br>
<br>
The briefcase model depends on two methods of TClientDataSet called <br>
LoadFromFile and SaveToFile: <br>
<br>
CustomerClientDataSet.SaveToFile('Customer.dta'); <br>
<br>
<br>
<br>
CustomerClientDataSet.LoadFromFile('Customer.dta'); <br>
<br>
If you have two tables you want to save, then you should save and read them <br>
both to separate files: <br>
<br>
procedure TForm1.BriefcaseSave1Click(Sender: TObject); <br>
<br>
begin <br>
<br>
CustomerClientDataSet.SaveToFile(CustomerFile); <br>
<br>
OrdersClientDataSet.SaveToFile(OrdersFile); <br>
<br>
end; <br>
<br>
Clearly the act of saving and reading files from disk is trivial in the <br>
extreme. However, there are some additional points that you need to take into <br>
consideration to use the briefcase model properly. Most of these points will <br>
be covered in the next section on PacketRecords. <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="88.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 + -