Page 1 of 1

input()

Posted: 29 Nov 2008 18:25
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... ?

Re: input()

Posted: 01 Dec 2008 08:33
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.

Re: input()

Posted: 01 Dec 2008 12:56
by admin
Handled in 7.80.0032.

Re: input()

Posted: 01 Dec 2008 13:22
by jacky
admin wrote:Handled in 7.80.0032.
Yep, thanks a lot! :)