create_xc 发表于 2007-5-30 15:18
[求助]怎样用代码实现PB与Oracle的连接啊?(通过.ini文件)
怎样通过读ini文件的相关信息来实现数据库的连接!?[em06][em13][em13]
路過 发表于 2007-5-30 16:22
string ls_database, ls_Server, ls_UserName, ls_PassWord<BR> <BR> ls_database = 'database_test'<BR> <BR> ls_Server = ProfileString( 'Accfix.ini', ls_database, 'Server', <a href="mailto:'@pcb'" target="_blank" >'@pcb'</A> )<BR> ls_UserName = ProfileString( 'Accfix.ini', ls_database, 'Username', 'accfix_g' )<BR> ls_PassWord = ProfileString( 'Accfix.ini', ls_database, 'Password', 'accfix_g' )<BR> // 設定<BR> SQLCA.DBMS ="O73 ORACLE 7.3"<BR> SQLCA.ServerName = ls_Server<BR> SQLCA.LogId = ls_UserName<BR> SQLCA.LogPass = ls_PassWord
create_xc 发表于 2007-5-31 10:50
<P>哦,谢谢啊[em17]</P>
页:
[1]