Microsoft KB Archive/149783

= INFO: ISAM Settings and Jet 3.0 =

Article ID: 149783

Article Last Modified on 6/28/2004

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition
 * Microsoft Visual Basic 4.0 Standard Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 32-Bit Enterprise Edition

-



This article was previously published under Q149783



SUMMARY
With the 16-bit version of Visual Basic 4.0, the IniPath property of the DBEngine object could be set to an application's .ini file. With the 32-bit Jet engine, setting the IniPath property of the DBEngine object to "C:\Windows\MyApp.INI" does not load the Paradox ISAM settings.



STATUS
This behavior is by design. The 32-bit Jet engine retrieves its settings from the registry.



Steps to Reproduce Behavior
  To use the ISAM settings with the 16-bit Jet engine, place the following code in the Load Event for the project: DBEngine.IniPath = "C:\Windows\MyApp.INI" where the following appears in the MyApp.INI file: [Paradox ISAM] ParadoxNetStyle=4.X     ParadoxNetPath=F:\ ParadoxUserName=JoeUser   To place the Paradox ISAM settings into the Registry under "HKEY_CURRENT_USER\Software\VB and VBA Program Settings," use the following code: SaveSetting "AppName", "Engines\Paradox", "ParadoxNetStyle", "4.X"   SaveSetting "AppName", "Engines\Paradox", "ParadoxNetPath", "F:\" SaveSetting "AppName", "Engines\Paradox", "ParadoxUserName", _ "JoeUser"   To obtain the ISAM settings from the Registry, place the following code in the Load Event: DBEngine.IniPath = _ "HKEY_CURRENT_USER\Software\VB and VBA Program Settings\AppName" 

