Thank you, Michael, in accordance with your recommendations, has been successfully connected! However, some new problems, form In Chinese characters appear garbled. Details are as follows: <br> <br> 1, Lazarus new form, from 'sqldb' tab, add the three essential components, set up a number of attributes. <br>
2, from 'Data Access' tab, add a component: TDataSource, set attributes DataSet. <br> 3, from the 'Data Controls' tab, add a component: TDBGrid, set attributes DataSource. <br> <br>In this way, the editorial in the state of Lazarus, I can see TDBGird
change from a blank into the full data. However, in the form of Chinese
data garbled, even in the running after this. In an earlier time, I have tried to connect
SQLite database, edit state is garbled, but in normal operation after RUN it. These two databases are UTF8 encoding, it appears to be a big
problem. I am very eager to see the Chinese in the data. <br> <br> UTF8 or ANSI, give me a recommendation? Thank you!<br><br><div class="gmail_quote">2008/5/29 Michael Van Canneyt <<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
To use SQLDB, you need always 3 components:<br>
<br>
1. A TSQLConnection component.<br>
This controls the connection to the database.<br>
<br>
2. A TSQLTransaction component.<br>
This controls the transaction in which a query is executed.<br>
It is connected to the TSQLConnection.<br>
<br>
3. A TSQLQuery component.<br>
This executes queries.<br>
It is connected to the TSQLConnection component (the database)<br>
and the TSQLTransaction (the transaction context). </blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Michael.<br></blockquote></div><br>-- <br>我的'开源办公室':<br><a href="http://pengtu.net/ooo">http://pengtu.net/ooo</a>