Hi Mohammed,
try:
local lcfile
lcfile=GETFILE()
if empty(lcfile)
thisform.text1.setfocus()
else
thisform.text1.Value = lcfile
endif
HTH
Franco
>hi all,
>
>i need to setfocus to my form or my textbox1 if i choise cancel after this code below
>
>thisform.text1.Value=GETFILE().
>
>any idea,
>
>thanks.