>Hi George.
>
>>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.
>
>This behavior must've changed then -- it worked that way in the version 5 control, and I just assumed it still worked that way in later releases. Thanks for pointing that out!
>
Doug,
You're welcome. The only problem with using the .FileName property
might be failing to set it to an empty string prior to calling ShowSave or ShowOpen. I haven't tested this, but it could be that if a call returning a value in the property is followed by a call which the user clicks the Cancel button, this second call might return the previous value if the property isn't reset.
George
Ubi caritas et amor, deus ibi est