Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Input validation routines

From: petr:krenzelok:trz:cz at: 27-Aug-2003 9:14

Robert M. Muench wrote:
>Hi, has someone written a set of input validation routines/dialect, >where I can check data against some format specification? Those things >one knows from Excel, databases etc. for dates, number, strings, length >of input and so on. Thanks. Robert >
ha, Robert progressing in db area, right? :-) I proposed field/match item, kind of a dialect. It is quite some time I last time looked at VID style sources, but I think that event handlers live in separate context or so. My idea was to be able to e.g. have fields like: (99) - (999 999) where "9" means 'number from 0 - 9, whereas e.g. "x" means char. Cursor should move so that you would be able to type only numbers, chars "() -" (those would be skipped, you would not be able to delete them, etc. 99.99.999 - date format - I saw various implementations :-) Well, in DOS, all letters were of the same width, but in GUI environments, it is not the same, so " . ." move as you type, it is a question how to do properly hilighting (some implementations failed, as you was able to delete those date-format dots, etc.) I think that dialects/rules are the way to go. -pekr-