WinStudio
IWSFormComponent interface
Sets or returns the TBD (To Be Determined) state of a component. A component with TBD enabled receives a system-generated value in a new row if the user does not enter a value for the component.
object.TBD
Part |
Description |
| object | Required. A reference to an editable form component object. |
object.TBD = Boolean
Part |
Description |
| object | Required. A reference to an editable form component object. |
| Boolean | Required. Determines whether TBD functionality
is enabled:
|
In the Get syntax, a return value of:
This setting corresponds to the To Be Determined setting in the component property sheet.
Sub Main()
Dim oTbd As Boolean
oTbd = ThisForm.Components("comboBox1").TBD
'Toggle field as TBD/not TBD:
If oTbd = True Then
ThisForm.Components("comboBox1").TBD = False
Else
ThisForm.Components("comboBox1").TBD = True
End If
End Sub