- Moderator
- #1
I used to do a "Trick" a long time ago.
Instead of using "IF" statements, for example:
... I used to be able to do something like:
... which would evaluate A=B, and set the "True" or "False" accordingly. Of course, granted, this was WAAAAY back in the day.
Well, now I have a situation where I have to set the visibility of form elements; I've marked whether they should be visible or not using the Tag field (I have to toggle them on and off).
I *WAS* trying to do something like this:
... however, that's not working. Is there not a simple way to do this any more? I would hate to do a whole bunch of "If btnFirstButton.Tag = "Y" Then btnFirstButton.Visible = True ELSE btnFirstButton.Visible = False"
... 'cause that would suck.
Any thoughts?
TIA!
Just my 2¢
"What the captain doesn't realize is that we've secretly replaced his Dilithium Crystals with new Folger's Crystals."
--Greg
Instead of using "IF" statements, for example:
Code:
If A = B Then
Something = True
Else
Something = False
End If
... I used to be able to do something like:
Code:
Something = (A = B)
Well, now I have a situation where I have to set the visibility of form elements; I've marked whether they should be visible or not using the Tag field (I have to toggle them on and off).
I *WAS* trying to do something like this:
Code:
btnFirstButton.Visible = (btnFirstButton.Tag = "Y")
... however, that's not working. Is there not a simple way to do this any more? I would hate to do a whole bunch of "If btnFirstButton.Tag = "Y" Then btnFirstButton.Visible = True ELSE btnFirstButton.Visible = False"
... 'cause that would suck.
Any thoughts?
TIA!
Just my 2¢
"What the captain doesn't realize is that we've secretly replaced his Dilithium Crystals with new Folger's Crystals."
--Greg