Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link SQL Related Articles: Selecting ODBC datasource using Registry 2002-11-20 -- Tim Morrison Newsgroups: comp.lang.clarion
This is what I ended up doing.
I am using the Registry Function Library.
Loc:Connect = 'SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources'
Loc:Key = OpenKey(HKEY_LOCAL_MACHINE,Loc:Connect)
IF Loc:Key = 0
!Your Own Error Processing
ELSE
EnumReg(Loc:Key,Q) !Populates a Queue (See Below)
END
CloseKey(Loc:Key)
ThisWindow.Reset(1)
Loc:Connect = CSTRING(101)
Loc:Key = ULONG
Q queue,type
Name string(255)
Type byte
Value any
end
The "Name" is all I really need, then I can do some processing based on what
the user selected.
Tim Morrison
"Tim Morrison"
Today is November 21, 2024, 6:39 am This article has been viewed 35242 times. Google search has resulted in 36 hits on this article since January 25, 2004.
|
|