|
Post by B+ on May 11, 2020 15:54:18 GMT
I don't see this mentioned here yet, though it might have been mentioned in past. Anyway last night I stumbled upon it when editing an INPUT of a long formula string.
INPUT using arrow keys, mouse or delete shows a correct edit but the value saved in variable is a mess! It seems using only backspace works as expected.
'test INPUT
do Print "Do abc...'s or 123...'s, make a mistake," print "use arrows, mouse or delete to rewrite," input "and enter when sequence is correct. ";test$ print "INPUT stored this value in test$: ";test$ print loop until test$ = "" print "INPUT test is done."
|
|
|
Post by Rod on May 11, 2020 18:13:34 GMT
I am not sure it is really a bug. Input is not a text editor, it is meant to capture a series of keypresses. That's what it is doing capturing the keypresses. It has no ability to handle mouse. So it will handle backspace, delete, tab etc but trying to edit the sequence with mouse clicks is ignored and the input continues as last key pressed. Textbox is what you would need.
|
|
|
Post by B+ on May 11, 2020 21:45:35 GMT
It's a bug when it looks like one thing on screen and is recorded as something else in the variable.
BTW it's not just with the mouse it's also with arrow keys and no mouse.
|
|
|
Post by B+ on May 13, 2020 21:45:41 GMT
Let the record show I tried to warn people about INPUT.
|
|