An object containing a two-dimensional array of strings (Struts hosting)
An object containing a two-dimensional array of strings Description Returns the registry value entries and their corresponding values for the application Rules at a Glance GetAllSettings works exclusively with the subkeys of HKEY_CURRENT_USERSoftware VB and VBA ProgramSettings. The elements in the first dimension of the array returned by GetAllSettings contain the value entry names. The elements in the second dimension of the array returned by GetAllSettings contain the values for the respective value entries. The two-dimensional array returned by GetAllSettings is based at 0 (as are all arrays) so the first value entry name is referenced using (0,0). A call to GetAllSettings will return only the value entry names and data belonging to the final registry key specified by the section argument. If that key itself has one or more subkeys, their data will not be retrieved by the function. If either appname or section do not exist, GetAllSettings will return an uninitialized Object. Programming Tips and Gotchas GetAllSettings is a function that was developed to retrieve data from initialization files in 16-bit environments and to retrieve data from the registry under Windows 9x and Windows NT. The language of the documentation, however, reflects the language of initialization files. The arguments labeled appnameand section are in fact registry keys; the argument labeled key is in fact a registry value entry. The built-in registry-manipulation functions allow you to create professional 32-bit applications that use the registry for holding application-specific data, in the same way that .INI files were used in the 16-bit environment. You can, for example, store information about the user’s desktop settings (i.e., the size and position for forms) the last time the program was run. Because the built-in registry functions in VB only create string-type registry keys, GetSetting and GetAllSettings return string values. Therefore, before you use numeric values returned from the registry, you should explicitly convert the value to a numeric data type. GetAllSettings, SaveSettings, and GetSetting allow you direct access to only a limited section of the windows registry, that being a special branch created for your application (HKEY_CURRENT_USERSoftware VBand VBA ProgramSettings). You cannot access or change other registry settings without using the Win32 API. Use the code Application.ExecutablePath to pass your application’s name to the GetAllSetting function. Only those settings that were created using either the Win32 API or the SaveSetting function will be returned. In other words, a VB application does not have a registry entry unless you have created one explicitly. If the key read by GetAllSettings has a default value, that value will not be retrieved by the function. If you want to store and retrieve default values, you must call the Win32 API directly. Because GetAllSettings returns an uninitialized Object when either appname or section do not exist, if you subsequently try to perform a UBound or LBound function on the object, a “Type Mismatch” error will be generated. You can test the validity of the returned value, as follows: Dim MySettings(,) As String Dim intSettings As Integer ‘ Place some settings in the registry. SaveSetting(”WindowsApplication6″, “Startup”, “Top”, “75″) SaveSetting(”WindowsApplication6″, “Startup”, “Left”, “50″) ‘ Retrieve the settings.
Note: If you are looking for best hosting provider to host and run your tomcat application check Astra tomcat hosting services