Scripting > CxHmiFms > CxFmsExceptionsCtrl Object > CxFmsExceptionsCtrl Example

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

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

CygNet Studio Screen Script: FMS Exceptions Ctrl.csf

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

Let us know how we can improve this topic.

CygNet at weatherford.com

© 2020 Weatherford. All rights reserved.