hi all
i have a command button with caption = "V".
when i click, i want to toggle between "v" and "X", so here
is what i wrote in the code:
VB Code:
Private Sub cmdFillAgain_Click() If gFillAgain = True Then cmdFillAgain.Caption = "X" Else cmdFillAgain.Caption = "V" End If gFillAgain = Not gFillAgain End Sub
but in the first time i click the button, the Caption remains "x" even though
the gFillAgain variable is changing as it should.. it looks like only the first time the button is clicked doesnt work, because after that i have no problems...
any idea???
thanks




Reply With Quote