THISFORM.Text1.Value = GETFILE ()
IFEMPTY (THISFORM.Text1.Value) && GETFILE () return an empty string if the user press Cancel, Close or ESCTHISFORM.Text1.SetFocus ()
ENDIF
HTH
>i need to setfocus to my form or my textbox1 if i choise cancel after this code below > >thisform.text1.Value=GETFILE().