procedure TfrmSetDatabase.GetDatabaseInfo(var AList: TStringList);<br>const ODBCINI = '/SOFTWARE/ODBC/ODBC.INI/ODBC Data Sources';<br>var<br> Reg: TRegistry;<br>begin<br> Reg := TRegistry.Create;<br> try<br> Reg.RootKey := HKEY_LOCAL_MACHINE;<br> if Reg.OpenKey(ODBCINI,false) then<br> begin<br> Reg.GetValueNames(AList);<br> end;<br> finally<br> Reg.Free;<br> end;<br>end;