Z zhym79 Unregistered / Unconfirmed GUEST, unregistred user! 2004-03-22 #1 请教:怎样在程序中取得系统环境变量的值?<br>如:我设置了,ORACLE_HOME = C:/oracle/ora92/bin<br>我怎样可以取得这个ORACLE_HOME呢?<br>
X XWHope Unregistered / Unconfirmed GUEST, unregistred user! 2004-03-22 #2 用API<br>var<br> pchar;<br> GetMem(p,1024);<br> GetEnvironmentVariable('ORACLE_HOME',p,1024);
用API<br>var<br> pchar;<br> GetMem(p,1024);<br> GetEnvironmentVariable('ORACLE_HOME',p,1024);
Z zhym79 Unregistered / Unconfirmed GUEST, unregistred user! 2004-03-22 #3 var<br> strOrcHome : string;<br>strOrcHome := GetEnvironmentVariable('ORACLE_HOME');<br>