For each
Posted: Tue Jan 02, 2018 9:05 am
Hello,
and Happy newyear for everybody
I like to check my controls if none has the text 'Uncleared'
so all the controls need to have the text 'Cleared' before we can close the account
but when i use my code it still manage to lock the account :(
anyone please?
and Happy newyear for everybody
I like to check my controls if none has the text 'Uncleared'
so all the controls need to have the text 'Cleared' before we can close the account
but when i use my code it still manage to lock the account :(
anyone please?
Code: Select all
ThanksFor Each c As Control In UiGroupBox2.Controls
If (TypeOf c Is UiSummary) Then
If Not CType(c, UiSummary).txtstatus.Text = "Cleared" Then
Exit Sub
Else
If TransToMy() Then
SummaryPrevButton.txtstatus.Text = "Cleared"
SummaryPrevButton.Refresh()
End If
Exit Sub
End If
End If
Next c