Reading AutoCommit and Lock values from an external text file  Chapter 19: Working with Unicode

Chapter 18: Setting Additional Connection Parameters

Getting values from the registry

If the AutoCommit and Lock values are stored in an application settings key in the registry, use the RegistryGet function to obtain them. For example:

string ls_string
RegistryGet("HKEY_CURRENT_USER\Software\MyCo\MyApp", &
   "Autocommit", RegString!, ls_string)
if Upper(ls_string) = "TRUE" then
   SQLCA.Autocommit = TRUE 
else
   SQLCA.Autocommit = FALSE
end if
RegistryGet("HKEY_CURRENT_USER\Software\MyCo\MyApp", &
   "Lock", RegString!, ls_string)





Copyright © 2004. Sybase Inc. All rights reserved. Chapter 19: Working with Unicode

View this book as PDF