Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActiveX commondialog
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00424599
Message ID:
00424905
Views:
16
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform