dark_mode EN

WInputMask

  • storage Datas
  • functions Methods
    • event Events
      • Inherits from: None

        File: zInputMask.prg

      This class is responsible for managing data entry templates in Edit type controls. The class relies on a JavaScript library named MASKA. The user can create his own WInputMask class if he wants, he will only have to create an InputMask() function that creates the single instance of his own mask class. Estas máscaras deben establecerse en la propiedad cPicture que tienen los controles tipo Edit.

      Maska default masks:
      SymbolTemplateDescription
      #/[0-9]/Digits
      @/[a-zA-Z]/Letters (no international characters)
      */[a-zA-Z0-9]/Letters and digits (no international characters)
      CA-Clipper style extra masks:
      A symbol == an input character (not an input character) multiple)
      SymbolTemplateDescription
      A/[A-Za-zŽžÀ-ÿ]/Letters (with international characters)
      N/[A-Za-zŽžÀ-ÿ]/Letters and digits (with international characters)
      D/[0-9]/ Digits only
      U/[A-Za-zŽžÀ-ÿ0-9]/Uppercase letters and digits (with international characters) international)
      Extra xaWeb masks:
      multiple
      SymbolTemplateDescription
      0/\d/Digits multiple
      9/\d/Numbers optional
      B/[A-Za-zŽžÀ-ÿ0-9]/ Letters and digits multiple
      V/[A-Za-zŽžÀ-ÿ0-9]/Multiple uppercase letters and digits
      Examples:
      • "0.99" : Numeric, any length, two digits after decimal point
      • "#99.#99.#99.#99" : IP address
      • "B B" : Two words
      • "V V V" : Three words converted to uppercase
      Extra masks for numeric values ​​only: "!#ll:dd:p"
      • 'll' : This is the locale for the format. By default: cLocale
      • dd' : This is the fraction for the decimal (number) portion
      • 'p' : (number) If greater than zero, only positive values ​​are supported. When using this mask type, the rest of the mask is useless.
      Note: If you are using a locale that uses '.' as a thousands separator, the decimal point must be set to the ',' character.