- Start
- License
- Framework
- First steps
- Updates
- XA_Functions
- WApp
- WAutoComplete
- WBasic
- WBasicCheckbox
- WBasicContext
- WBasicDateTime
- WBasicEdit
- WBasicEmail
- WBasicNumber
- WBasicRadio
- WBasicSelect
- WBasicSelectItem
- WBasicStyle
- WBreadcrumb
- WButton
- WCard
- WCarousel
- WCarouselImage
- WCarouselPanel
- WCheckbox
- WChip
- WCmpButtonIcon
- WCmpButtonSpinner
- WCmpNumericKeypad
- WCollapsible
- WCollapsiblePanel
- WCollection
- WCollectionItem
- WColor
- WContainer
- WContext
- WContextHelper
- WControl
- WCookie
- WCss
- WDatePicker
- WDateTime
- WDiv
- WDoc
- WDocSection
- WDropDownItem
- WDropdown
- WDump
- WEdit
- WEmail
- WEngine
- WFetch
- WFieldset
- WFile
- WFlexRow
- WFloatActionButton
- WFloatActionButtonItem
- WFooter
- WForm
- WHeader
- WIconGoogle
- WImage
- WInput
- WInputImage
- WInputMask
- WInputText
- WLabel
- WLink
- WList
- WListItem
- WMain
- WMariaDbDatasource
- WMariaDbQuery
- WMaterialBox
- WMaterializeContext
- WMaterializeHelper
- WMeta
- WModal
- WModalMsgBtn
- WModalObject
- WNav
- WNavbar
- WNavbarItem
- WNavbarLogo
- WNumber
- WPackage
- WPagination
- WPaginationItem
- WParagraph
- WPdf
- WPdfAutoTable
- WPdfAutoTableStyle
- WPdfStyle
- WPhpRunner
- WPostFile
- WPreloader
- WRadio
- WRadioMenu
- WRange
- WRouter
- WScript
- WSelect
- WSelectItem
- WSession
- WSidenav
- WSidenavHeader
- WSidenavItem
- WSimpleContext
- WSlider
- WSliderItem
- WSpan
- WSqliteDatasource
- WSqliteQuery
- WStyle
- WSwitch
- WSyntaxHilite
- WTable
- WTableCell
- WTableColGroup
- WTableRow
- WTableTask
- WTableZone
- WTabs
- WTabsItem
- WTask
- WText
- WTextArea
- WTimePicker
- WTooltip
- WTranslator
- WWaterContext
- WXailerMariaDbDatasource
- WXailerSqliteDatasource
- WXailerWebDatasource
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:
Symbol | Template | Description |
---|---|---|
# | /[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)Symbol | Template | Description |
---|---|---|
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:
multipleSymbol | Template | Description |
---|---|---|
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.