Step 9: Entering the Characters
You probably noticed the delete button does nothing. This is because the delete character has an ID value of 38 and the string "0123456789abcdefghijklmnopqrstuvwxyz. " only contains 37 characters.Therefore nothing is added to Text when you press Enter while it selected. But more importantly, nothing is deleted either. To remove the last character, we use the left$ function.
Left$ returns a string consisting of the left most number of specified characters of its string argument. The expression is written:
In our case, the target string is Text and the number of characters to return is the length of Text -1.
- Upon pressing "Enter"
- Selection of
= 38
-
: Set Text to Left$(Text( "
" ), Len(Text( "
" ))-1)

12