CheckBoxDefined: Boolean;
The CheckBoxDefined property determines whether the CHECKBOX parameter is present in binding string.
If the CheckBoxDefined property is set to True, the binding string describing the value editor contains the CHECKBOX parameter. The value of this parameter is determined by the CheckBox property.
Sub DateTimePickerBindingInfo(SourceBinding: String);
Var
BM: IBindingManager;
Binding: IBindingValue;
DTBinding: IBindingDateTimePicker;
Begin
BM := New BindingManager.Create;
Binding := BM.CreateByValue(SourceBinding);
If (Binding.UI = "DateTimePicker") Or (Binding.UI = "DatePicker") Or (Binding.UI = "TimePicker") Then
DTBinding := Binding As IBindingDateTimePicker;
//Check if the CHECKBOX parameter is present
If DTBinding.CheckBoxDefined Then
Debug.WriteLine("CHECKBOX: " + DTBinding.CheckBox.ToString);
End If;
//Check if the SET_FOCUS_ON_CHECK_BOX parameter is present
If DTBinding.CheckBoxFocusDefined Then
Debug.WriteLine("SET_FOCUS_ON_CHECK_BOX: " + DTBinding.CheckBoxFocus.ToString);
End If;
//Check if the DROPCALENDAR parameter is present
If DTBinding.DropCalendarDefined Then
Debug.WriteLine("DROPCALENDAR: " + DTBinding.DropCalendar.ToString);
End If;
//Check if the MINVAL parameter is present
If DTBinding.MinValueDefined Then
Debug.WriteLine("MINVAL: " + DTBinding.MinValue.ToString);
End If;
//Check if the MAXVAL parameter is present
If DTBinding.MaxValueDefined Then
Debug.WriteLine("MAXVAL: " + DTBinding.MaxValue.ToString);
End If;
//Check if the SPIN parameter is present
If DTBinding.SpinDefined Then
Debug.WriteLine("SPIN: " + DTBinding.Spin.ToString);
End If;
//Check if the SHOWTIME parameter is present
If DTBinding.TimeDefined Then
Debug.WriteLine("SHOWTIME: " + DTBinding.Time.ToString);
End If;
//Check if there is the VALUE parameter
If DTBinding.ValueDefined Then
Debug.WriteLine("VALUE: " + DTBinding.Value.ToString);
End If;
End If;
End Sub DateTimePickerBindingInfo;
This function checks the binding string passed as the SourceBinding input parameter. If the binding string corresponds to the date/time editor, values of its parameters will be displayed in the development console.
See also: