Glimmr Form Fields

version 1/101201 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Delete key

    A keypress-to-string conversion rule when keystroke-code is a delete key (this is the keypress deleting rule):
        if cursor of the input-stream of the current field > 0:
            let field-input be the input-stream of the current field;
            replace character number (cursor of field-input) in text-string of field-input with "";
            decrease cursor of field-input by 1;
        otherwise:
            follow the field input error-handling rules for the current field;
        continue the action.

    To decide if (keychar - a number) is a delete key:
        if keychar is 127 or keychar is -7, decide yes;
        decide no.