>Hello all,
>
>I am trying to figure out why the code I wrote to obtain the SourceDB key from the ODBC.ini entry in the registry works on a win 9x machine but not on a NT 4.0 machine. Does anybody have any idea why? I search the knowledge base here and found an artice that refers to using SQLGetPrivateProfileString but I can not find any information on the ODBC API function.
>
>Any help is greatly appreciated.You haven't posted a code sample so it's not easy to diagnose. If you are using VFP's INI class (from the Component Gallery), this should work. An INI file is just text so you can also read it into a variable with
lcODBCIni = FileToStr("C:\WINNT\ODBC.INI")
and parse it line by line ( with
ALINES()
) for example, to find what you are looking for.
HTH