WinStudio

TBD Property

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:
  • TRUE – Enables TBD functionality for the component.
  • FALSE – Disables the TBD functionality.

Remarks

In the Get syntax, a return value of:

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