CASE SELECTS

  • Thread starter Thread starter TD
  • Start date Start date
T

TD

How do create a case select statement from these two
seperate events.

FormDetail_MOUSEMOVE
If lblChildren.Fontbold = True Then
lblChildren.Fontbold = False
End If

If lblFamily.Fontbold = True Then
lblFamily.FontBold = False
End If

If lblDiary.FontBold = True Then
lblDiary.FontBold = False
End If
END SUB


FormDetail_MOUSEMOVE
If lblChildren.ForeColor = YELLOW Then
lblChildren.ForeColor = WHITE
End If

If lblFamily.ForeColor = YELLOW Then
lblFamily.ForeColor = WHITE
End If

If lblDiary.ForeColor = YELLOW Then
lblDiary.ForeColor = WHITE
End If
END SUB
 
SELECT CASE statements are meant to check for specific values for a single
object or variable, not to check for the same value for multiple objects or
variables.

While it might be possible to rig up a SELECT CASE statement that would
work, why would you?

What's the actual problem you're trying to solve?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top