The"Truth"
11-25-2008, 09:18 AM
I want the Caption Fail to be displayed in Red, and the Caption Pass to be displayed in Green. Is this possible?
If (ResultLabel1.Caption = "FAIL" Or ResultLabel2.Caption = "FAIL" Or
... ResultLabel10.Caption = "FAIL" Then
PassorFailLabel.Caption = "FAIL"
ElseIf (ResultLabel1.Caption = "Pass" And ... ResultLabel10.Caption = "Pass" Then
PassorFailLabel.Caption = "Pass"
End If
If (ResultLabel1.Caption = "FAIL" Or ResultLabel2.Caption = "FAIL" Or
... ResultLabel10.Caption = "FAIL" Then
PassorFailLabel.Caption = "FAIL"
ElseIf (ResultLabel1.Caption = "Pass" And ... ResultLabel10.Caption = "Pass" Then
PassorFailLabel.Caption = "Pass"
End If