Hello,
I am using PB 12.5.
How do I know that a user selected Cancel in PB SaveAs dialog? li_ret = dw_1.SaveAs()
Request clarification before answering.
Powerbuilder returns -1 if the user cancels the SaveAs dialog. But it also returns -1 if the save fails because of other reasons.
So the only way to know that user cancels the dialog is to show your own SaveAs dialog as Roland suggested.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm using, Powerbuilder 12.5. Where can I download maintenace bug fixed download ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Rene.
I think Appeon should update this return code - maybe return 0 if user cancels.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could use GetFileSaveName instead and then pass the returned 'pathname' to the SaveAs with a hard coded SaveAsType.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.