In UpdateText() on this control, we need a "return" added when the value is detected as true or false, and then the format is changed to on/off or yes/no. without returning, the value is overwritten later again to true/false again.
Private Sub UpdateText()
If m_Value IsNot Nothing Then
'* True/False comes from driver, change if BooleanDisplay is different 31-DEC-11
If (m_Value = "True" Or m_Value = "False") And m_BooleanDisplay <> BooleanDisplayOption.TrueFalse Then
If Value = "True" Then
If m_BooleanDisplay = BooleanDisplayOption.OnOff Then MyBase.Text = "On"
If m_BooleanDisplay = BooleanDisplayOption.YesNo Then MyBase.Text = "Yes"
Else
If m_BooleanDisplay = BooleanDisplayOption.OnOff Then MyBase.Text = "Off"
If m_BooleanDisplay = BooleanDisplayOption.YesNo Then MyBase.Text = "No"
End If
Return 'ADD THIS HERE.
End If
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In UpdateText() on this control, we need a "return" added when the value is detected as true or false, and then the format is changed to on/off or yes/no. without returning, the value is overwritten later again to true/false again.
Private Sub UpdateText()
If m_Value IsNot Nothing Then
'* True/False comes from driver, change if BooleanDisplay is different 31-DEC-11
If (m_Value = "True" Or m_Value = "False") And m_BooleanDisplay <> BooleanDisplayOption.TrueFalse Then
If Value = "True" Then
If m_BooleanDisplay = BooleanDisplayOption.OnOff Then MyBase.Text = "On"
If m_BooleanDisplay = BooleanDisplayOption.YesNo Then MyBase.Text = "Yes"
Else
If m_BooleanDisplay = BooleanDisplayOption.OnOff Then MyBase.Text = "Off"
If m_BooleanDisplay = BooleanDisplayOption.YesNo Then MyBase.Text = "No"
End If
Return 'ADD THIS HERE.
End If
Thanks for the feedback. This fix will be put in for the next release.