comp • gb.settings • settings • read

Settings.Read (gb.settings)

Sub Read ( hObject As Object [ , sKey As String, vDefault As Variant ] )

Initializes the specified object from the settings file.

The settings must have been written with the Write method.

This method can handle Window objects, or any control having a Settings property.

Window settings are its position, and its size if the window is resizable. The key used to store the settings is the name of the window class, with the Key optional argument added.

The settings of the other controls depends on the implementation of their Settings property. The key used to store the settings is the class name of the parent window of the control, followed by the name of the control, or the value of Key argument if it is specified.