~~Title: Reading Dialog Control Values ~~
The primary use of a script dialog is to obtain information from the user. The **[[:reference:scripting_reference:scripting_objects:control|Control]]** object is used to read data from dialog controls. In a [[.the_dialog_message_loop:detached_dialogs|detached dialog]] you can do this while the dialog is open; in both a simple and a detached dialog you can also do this after the dialog has closed.
The **[[:reference:scripting_reference:scripting_objects:dialog|Dialog]].Control** method is used to obtain a **[[:reference:scripting_reference:scripting_objects:control|Control]]** object corresponding to a dialog control. The **[[:reference:scripting_reference:scripting_objects:control|Control]]** method takes between one and three parameters:
Dim dlgCtrl
Set dlgCtrl = Dialog.Control ( , [
The **** parameter is the name of the control, as specified in the control’s properties. This parameter is required.
The other two parameters are only needed if you have any //Tab controls// on your dialog, as these can host other dialogs. The **