peng schreef: > Look ScreenPrint. Next time, please paste source code: that is easier to copy.
remvoe the line procedure TSQLConnection.ExecuteDirect ... after the begin a line later add PQConnection1.ExecuteDirect('set client_encoding to ''gbk''); Vincent > > 2008/5/30 peng <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>: > > Thanks for your answer, but I do not know how to set up > TSQLConnection.ExecuteDirect (......). > TSQLConnnection components in the election, I can not find > ExecuteDirect attributes. Can give me concrete steps ? I am still a > novice Lazarus, thank you! > -- > 2008/5/30 Joost van der Sluis <[EMAIL PROTECTED] <mailto:[EMAIL > PROTECTED]>>: > > You should first set the client_encoding with > 'TSQLConnection.ExecuteDirect('set client_encoding to ''gbk'');' > Then you can open your query. (Note that you can only change the > sql-statement of an query when it's closed) > Joost. > > _______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus