input()

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

input()

Post by jacky »

I like the notes param and of course to be able to use this as a function, but:

- <notes> : is there a length limit of some kind ? There seems to be, no?

Code: Select all

msg input("No one cares", "So this is the place where you put your ""notes"" for the user... and they can be long, right? Right?? Where am I?");
- I don't really like that pressing Cancel shows up the Stepping error dialog. Because of that, and also because in the script we have no idea to know whether user validated an empty string and press Cancel.
With the command input it used to cancel the script, now it should cancel the script as before, or just return something and let the script handle it. The problem is of course what to return, but maybe it's time for some constant or something, where == FALSE (===?) would mean set to the constant FALSE, not an empty string or 0... ?
Proud XYplorer Fanatic

Pagat
Posts: 306
Joined: 09 Oct 2007 21:23
Location: Austria

Re: input()

Post by Pagat »

jacky wrote:With the command input it used to cancel the script, now it should cancel the script as before, or just return something and let the script handle it. The problem is of course what to return, but maybe it's time for some constant or something, where == FALSE (===?) would mean set to the constant FALSE, not an empty string or 0... ?
I feel exactly the same: Pressing cancel on the new input dialog should either end the script as before or return some kind of constant that we could check and act accordingly.

admin
Site Admin
Posts: 66075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: input()

Post by admin »

Handled in 7.80.0032.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: input()

Post by jacky »

admin wrote:Handled in 7.80.0032.
Yep, thanks a lot! :)
Proud XYplorer Fanatic

Post Reply