WinStudio
IWSFormComponent interface
Sets or returns the value of the Required attribute.
object.Required
Part |
Description |
object | Required. A reference to an editable component object. |
object.GetRequired = Boolean
Part |
Description |
object | Required. A reference to an editable component object. |
Boolean | Required. Determines whether the Required attribute
is enabled:
|
In the Get syntax, a return value of:
Sub Main() Dim oRequired As String oRequired = "" If ThisForm.Components("comboBox1").Required Then oRequired = "Yes" Else oRequired = "No" End If Application.ShowMessage("ComboBox1 a required field?" _ & vbLf & oRequired) If ThisForm.Components("comboBox1").Required Then ThisForm.Components("comboBox1").Required = False Application.ShowMessage("ComboBox1 is no longer required.") Else ThisForm.Components("comboBox1").Required = True Application.ShowMessage("ComboBox1 is now required.") End If End Sub
Required When, WinStudio Component Property