|
-
Jun 4th, 2000, 03:42 PM
#1
Thread Starter
Hyperactive Member
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]
-
Jun 4th, 2000, 03:49 PM
#2
Lively Member
I think this is what you are after.
Code:
lblAnything.Visible = Not lblAnything.Visible
-
Jun 4th, 2000, 09:12 PM
#3
Fanatic Member
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.
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
|