|
-
Jun 17th, 2005, 04:01 PM
#1
Thread Starter
Addicted Member
Labels and If statement [RESOLVED]
I have several labels on a form that have their visible property set to false if certain settings are made. What I would like to do is be able to display another label if all the others have their visible property set false. This If statement is stumping me right now any suggestions?
Last edited by bat711; Jun 17th, 2005 at 04:21 PM.
-
Jun 17th, 2005, 04:06 PM
#2
Re: Labels and If statement
 Originally Posted by bat711
I have several labels on a form that have their visible property set to false if certain settings are made. What I would like to do is be able to display another label if all the others have their visible property set false. This If statement is stumping me right now any suggestions?
VB Code:
If (Label1.Visible = False) And (Label2.Visible = False) And (Label3.Visible = False) Then ' Continue adding And (lblName.Visible = False) untill you are done
' Do soemthing here.
End If
Cheers,
RyanJ
-
Jun 17th, 2005, 04:17 PM
#3
Thread Starter
Addicted Member
Re: Labels and If statement
Eh, I was using & instead of And no wonder.
-
Jun 17th, 2005, 04:19 PM
#4
Re: Labels and If statement
 Originally Posted by bat711
Eh, I was using & instead of And no wonder. 
& is normally used for joining strings so nope, that would now work 
Cheers,
RyanJ
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|