IBindingDateTimePicker.CheckBoxDefined

Fore Syntax

CheckBoxDefined: Boolean;

Fore.NET Syntax

CheckBoxDefined: Boolean;

Description

The CheckBoxDefined property determines whether the CHECKBOX parameter is present in binding string.

Comments

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.

Fore Example

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 the VALUE parameter is present
        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.

Fore.NET Example

Imports Prognoz.Platform.Interop.ForeSystem;

Sub DateTimePickerBindingInfo(SourceBinding: String);
Var
    BM: BindingManager = New BindingManagerClass();
    Binding: IBindingValue;
    DTBinding: IBindingDateTimePicker;
Begin
    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
            System.Diagnostics.Debug.WriteLine("CHECKBOX: " + DTBinding.CheckBox.ToString());
        End If;
        //Check if the SET_FOCUS_ON_CHECK_BOX parameter is present
        If DTBinding.CheckBoxFocusDefined Then
            System.Diagnostics.Debug.WriteLine("SET_FOCUS_ON_CHECK_BOX: " + DTBinding.CheckBoxFocus.ToString());
        End If;
        //Check if the DROPCALENDAR parameter is present
        If DTBinding.DropCalendarDefined Then
            System.Diagnostics.Debug.WriteLine("DROPCALENDAR: " + DTBinding.DropCalendar.ToString());
        End If;
        //Check if the MINVAL parameter is present
        If DTBinding.MinValueDefined Then
            System.Diagnostics.Debug.WriteLine("MINVAL: " + DTBinding.MinValue.ToString());
        End If;
        //Check whether the MAXVAL parameter is present
        If DTBinding.MaxValueDefined Then
            System.Diagnostics.Debug.WriteLine("MAXVAL: " + DTBinding.MaxValue.ToString());
        End If;
        //Check if the SPIN parameter is present
        If DTBinding.SpinDefined Then
            System.Diagnostics.Debug.WriteLine("SPIN: " + DTBinding.Spin.ToString());
        End If;
        //Check if the SHOWTIME parameter is present
        If DTBinding.TimeDefined Then
            System.Diagnostics.Debug.WriteLine("SHOWTIME: " + DTBinding.Time.ToString());
        End If;
        //Check whether the VALUE parameter is present
        If DTBinding.ValueDefined Then
            System.Diagnostics.Debug.WriteLine("VALUE: " + DTBinding.Value.ToString());
        End If;
    End If;
End Sub;

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:

IBindingDateTimePicker