>Hi George.
>
>>>I use a commondialog on my application (showopen)
>>>
>>>But can't arrive to know went the user click on "CANCEL"
>>>
>>>Somebody know it?
>>
>>The .FileName property will be empty.
>
>Not necessarily: if the user chooses a file, then Cancel, FileName will contain the name of the file they chose. The only reliable way is to set CancelError to .T., then trap the error in VFP.
>
Doug,
Nope, not the case. I just tested this under VFP 6.0 SP4 and if the Cancel but is selected, even if a file has been selected with either the ShowOpen or ShowSave methods, the .FileName property is empty. Are you thinking of the FileTitle property? I didn't check that.
George
Ubi caritas et amor, deus ibi est