CxFmsExceptionsCtrl Example

Use the CxFmsExceptionsCtrl object to display and manipulate an ActiveX CygNet FMS Exceptions Control in a CygNet Studio screen environment.

CygNet FMS Exceptions Control
CygNet FMS Exceptions Control Example

To see an example FMS Exceptions control implemented in a pre-designed screen, open the FMS Exceptions Ctrl.csf file found in the APPS SCREXAMP or in the CygNet\Clients\CStudio\Screens\Examples folder.

CygNet Studio Screen Script: FMS Exceptions Ctrl.csf

Copy
CxFmsExceptionsCtrl Example
Sub btnApply_EventClick()
Dim This : Set This = btnApply
    FmsExceptions.SessionNodeTag = editSessionNode.Text
    FmsExceptions.SessionBeginDate = editStartDate.Text
    FmsExceptions.SessionEndDate = editEndDate.Text
    FmsExceptions.SessionDateFormat = cboDateFormat.Selection
    FmsExceptions.PITDateTime = editPIT.Text
    FmsExceptions.UsePIT = checkUsePIT.Check
    FmsExceptions.Apply True
End Sub 
 
Sub btnCancel_EventClick()
Dim This : Set This = btnCancel
    FmsExceptions.Cancel
End Sub 
 
Sub cboDateFormat_EventChange()
Dim This : Set This = cboDateFormat
    FmsExceptions.SessionDateFormat = this.Selection
End Sub 
 
Sub checkUsePIT_EventChange()
Dim This : Set This = checkUsePIT
    FmsExceptions.UsePIT = this.Check
    editPIT.Enable this.Check
End Sub 
 
Sub TheView_EventInitialize()
Dim This : Set This = TheView
    editSessionNode.Text = FmsExceptions.SessionNodeTag
     
    editStartDate.Text = FmsExceptions.SessionBeginDate
    editEndDate.Text = FmsExceptions.SessionEndDate
    cboDateFormat.AddString "Device"
    cboDateFormat.AddString "Contract"
    cboDateFormat.AddString "Local"
    cboDateFormat.Selection = FmsExceptions.SessionDateFormat
     
    checkUsePIT.Check = FmsExceptions.UsePIT
    editPIT.Text = FmsExceptions.PITDateTime
    editPIT.Enable = FmsExceptions.UsePIT
End Sub

Back to top