loading the sql property from string list object.htm

来自「delphi的学习资料」· HTM 代码 · 共 28 行

HTM
28
字号
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>Loading the SQL property from string list object</title>
</head>

<body>

<table border="0" width="100%" style="font-size: 9pt">
  <tr>
    <td width="100%"><strong>从另一个TStrings对象中获得SQL语句</strong><br>
    &nbsp;&nbsp;&nbsp; 还可以从另一个TStrings对象中获取SQL语句,需要调用TStrings的Assign方法。Assign 
    会自动把原来的SQL语句清空。比如:<br>
    <br>
    &nbsp;&nbsp;&nbsp; CustomerQuery.Close;<br>
    &nbsp;&nbsp;&nbsp; CustomerQuery.SQL.Assign(Memo1.Lines);<br>
    &nbsp;&nbsp;&nbsp; CustomerQuery.Open;<hr size="1">
    <p align="center"><a href="mailto:ilovedelphi@163.net">RainBow</a><font color="#ffffff">。</font>策划制作 
    版权所有</td>
  </tr>
</table>

<p> </p>
</body>
</html>

⌨️ 快捷键说明

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