>Hello,
>
>I am using a form with some text controls bound to a table.
>When I click on a command button they following code will run:
>
>....
>if alltrim(thisform.artnr.value) = ""
> =Messagebox("Message",48,"Achtung")
> return
>endif
>
>I am trying to verify if a form field is filled or not.
>But it doesn't work.
>Equal to the value the messagebox appears every time. :-(((((
>
>Sorry about my english.
>
>Can anybody help me?
>
>regards Ralf
In VFP every string = "" unless set exact is on. Do it like this :
if thisform.artnr.value == ""
=Messagebox("Message",48,"Achtung")
return
endif
if empty(thisform.artnr.value)
=Messagebox("Message",48,"Achtung")
return
endif
Cetin