TBD property (WinStudio scripts)
Applies To
IWSFormComponent interface
Definition
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.
Get Syntax
object.TBD
Part | Description |
object | Required. A reference to an editable form component object. |
Set Syntax
object.TBD = Boolean
Part | Description |
object | Required. A reference to an editable form component object. |
Boolean | Required.
Determines whether TBD functionality is enabled:
|
Remarks
In the Get Syntax, a return value of:
- TRUE indicates that TBD functionality is enabled.
- FALSE indicates that TBD functionality is disabled.
This setting corresponds to the To Be Determined setting in the component property sheet.
Example
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