Xshell Forum

xsh.Dialog.Prompt return value

Last post: Friday, April 20, 2018 2:18 AM by Support, 1 reply

Wednesday, April 18, 2018 1:50 PM - jsanagustin

xsh.Dialog.Prompt return value

Currently, clicking 'Cancel' or the 'X' in the dialog shown by xsh.Dialog.Prompt seems to return the same as leaving the input field empty and clicking 'OK'. his forces me to use xsh.Dialog.MessageBox to ask the user if they actually want to cancel or not.

Would it be possible to have xsh.Dialog.Prompt return something else when clicking 'Cancel' or the 'X'?

Program Ver. : Xshell 5
Friday, April 20, 2018 2:18 AM - Support

Re: xsh.Dialog.Prompt return value

I agree that we should distinguish empty strings from a null value.

As you said, there is no other workaround other than the solution you have mentioned. I'll report this issue to our dev team. Appreciate the report.

Technical Support

Like us on Facebook
Follow us on Twitter
Visit our blog Blog