>Everytime I attempt to run my form, it locks up after I enter something in the first field. There are only two fields on the form. Here is the valid method in my form on the first field. What is the deal here?
>
>IF EMPTY(ThisForm.HtcNoProTxt.VALUE) OR ThisForm.HtcNoProTxt.VALUE = '000' OR ThisForm.HtcNoProTxt.VALUE = '00' OR ThisForm.HtcNoProTxt.VALUE = '0'
Lets try some simplification here. Maybe this would be easier:
IF VAL(ThisForm.HtcNoProTxt.VALUE) = 0
> = MESSAGEBOX ("Invalid HTC ID! Please re-enter." , 0 + 64 + 0 , "Invalid HTC ID") = 0
This is making an unneeded compare; you don't need to try to compare the result of the function call with anything if you aren't saving or examining the result of the MESSAGEBOX() function call. You can drop the trailing
= 0 > *ThisForm.HtcNoProTxt.GOTFOCUS
>ELSE
> THIS.ENABLED = .F.
> ThisForm.HtcNameProTxt.ENABLED = .T.
> ThisForm.Btn_Reset.ENABLED = .T.
> THISFORM.REFRESH()
>ENDIF
>
>Thanks, Jeff