L
linghu
Unregistered / Unconfirmed
GUEST, unregistred user!
这段代码是系统生成的一个DFM文件中拷贝出来的。<br>怎样把这段代码写成PAS的语法格式;<br> object Connection: TSQLConnection<br> ConnectionName = 'MSSQLConnection'<br> DriverName = 'MSSQL'<br> GetDriverFunc = 'getSQLDriverMSSQL'<br> LibraryName = 'dbexpmss.dll'<br> Params.Strings = (<br> 'DriverName=MSSQL'<br> 'HostName=server'<br> 'DataBase=manger'<br> 'User_Name=sa'<br> 'Password=123456'<br> 'BlobSize=-1'<br> 'ErrorResourceFile='<br> 'LocaleCode=0000'<br> 'MSSQL TransIsolation=ReadCommited'<br> 'OS Authentication=True')<br> VendorLib = 'oledb'<br>中间的PARAMS.strings不会<br>只有一部分<br>with Connection do<br> begin<br> ConnectionName := 'MSSQLConnection' ;<br> DriverName:='MSSQL';<br> GetDriverFunc:='getSQLDriverMSSQL';<br> LibraryName:='dbexpmss.dll';<br> PARAMS.strings<br> VendorLib := 'oledb';<br><br> end;