Menu

bug in basiclabel - boolen display option

2016-04-24
2016-04-24
  • brady moritz

    brady moritz - 2016-04-24

    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

     
  • Archie

    Archie - 2016-04-24

    Thanks for the feedback. This fix will be put in for the next release.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.