I've noticed that this check works with a simple radio button but refuses to work with a square push button. Basically upon a button click it returns the value from the text field object. It works great with a radio button but not so hot with a push button.
If ButtonState(b)=1 Return Int(TextFieldText(f)) EndIf