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:
  1. Private Sub cmdFillAgain_Click()
  2.     If gFillAgain = True Then
  3.         cmdFillAgain.Caption = "X"
  4.     Else
  5.         cmdFillAgain.Caption = "V"
  6.     End If
  7.     gFillAgain = Not gFillAgain
  8. 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