-
I know that there is a quick way of detecting an object property and setting it to the opposite, rather than using If...Then...Else...End If.
ie
Code:
If not lblAnyThing.Visible Then
lblAnyThing.Visible=True
Else
lblAnyThing.Visible=False
End If
The only question is, what is it?
[Edited by gravyboy on 06-05-2000 at 09:45 AM]
-
I think this is what you are after.
Code:
lblAnything.Visible = Not lblAnything.Visible
-
Alternatively, you could use the Xor operator on the visible property, like this:
Code:
lblAnything.Visible = lblAnything.Visible Xor True
Just another way of doing it, I guess.