Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DSN Names
Message
From
13/10/2004 03:02:40
Jon Neale
Bond International Software
Wootton Bassett, United Kingdom
 
 
To
13/10/2004 02:41:30
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00950942
Message ID:
00950943
Views:
11
Hi Darren,

I'm not sure this is 100% what you want but I think its along the right lines. Theres a REGISTY class shipped with VFP that can get this sort of info. In the example below i've used the class but i'm sure you can nick the specific API calls from the class if that fits your needs.

LOCAL loODBCReg, lnErrNum, laODBCData
DIMENSION laODBCData[1]
set default to "C:\Program Files\Microsoft Visual Studio\Vfp98\FFC\"
IF NOT "REGISTRY.VCX" $ UPPER(SET("CLASSLIB"))
SET CLASSLIB TO registry ADDITIVE
ENDIF

loODBCReg = CREATEOBJECT("ODBCReg")
DIMENSION w_test[1]
w_test = loODBCReg.getodbcdrvrs(w_test)

Hope this gives you an idea of what you want to do. Let me know if I can help anymore.

Jon
Previous
Reply
Map
View

Click here to load this message in the networking platform