Hi Esparta, thanks, i will do it.
something like this,
**thisform.text1.valid()
if !empty(this.value)
if !(thisform.checkcli(this.value))
return .F. &&client does not exist
endif
thisform.clinomb= alltrim(clients.nomb)+' '+allt(clients.lastname)
else
thisform.clinomb= ''
endif