Homepage: Validating Edit Controls
| nRC | 0: error <>0: ok |
| AMSAlphaNumHwnd | Handle to the control |
| int | RGB-value for the textcolor |
| int | RGB-value for the backgroundcolor |
| AMSAlphaNumHwnd | Handle to the new control |
| nStyle | i.e. 0x10000000 |
| x, y | top left coordinates on the dialog |
| Width, Height | Width and Height of the control |
| HWND | Handle of the dialog |
| ID | Id of the new control |
| nType | Type of the new control 1 = alphanumeric 2 = numeric 3 = date 4 = time |
| nRC | 0: error <>0: ok |
| AMSAlphaNumHwnd | Handle to the control |
| int maximalchars | i.e. 5 to limit input to 5 characters |
| str invalidchars | do not accept these characters |
| nRC | 0: error <>0: ok |
| AMSAlphaNumHwnd | Handle to the control |
| str | Text to set or to retrieve |
| int | set to 0 to set the new text set to size of reserved space to retrieve the current text of the control. Use i.e. VarSetCapacity(xxx,200) to reserve enough space |
| nRC | 0: error <>0: ok |
| AMSNumHwnd | Handle to the control |
| int nMaxWholeDigits | i.e. 5 to limit input to 5 characters (before the decimal-point) |
| int nMaxDecimalDigits | i.e. 2 to limit input to 2 characters (after the decimal-point) |
| nRC | 0: error <>0: ok |
| AMSNumHwnd | Handle to the control |
| int nAllowNegative | 0 | 1: Allow negative values |
| str chSeperator | Seperator for decimal point |
| str ch1000Seperator | Seperator for points: 1.000.000,22 |
| str chPrefix | $1: Char to place before the number |
| int nThousandSeperatorevery3digits | i.e. if set to 2: 23.45.76,543 set to 3: 123.456.789 |
| nRC | 0: error <>0: ok |
| AMSNumHwnd | Handle to the control |
| STR szMask | Enter a mask to use. i.e: #.###.###,## to allow maximum value: 1.234.567,89 |
| nRC | 0: error <>0: ok |
| AMSDateHwnd | Handle to the control |
| int nDay nMonth nYear | Enter the initial values |
| nRC | 0: error <>0: ok |
| AMSDateHwnd | Handle to the control |
| nRC | 0: error <>0: ok |
| AMSDateHwnd | Handle to the control |
| Day, Month, Year (From) | smallest date |
| Day, Month, Year (To) | greatest date |
| nRC | 0: error <>0: ok |
| AMSDateHwnd | Handle to the control |
| 0 | 1 | Show day before month |
| nRC | 0: error <>0: ok |
| AMSTimeHwnd | Handle to the control |
| int nHour nMinute nSeconds | Enter the initial values |
| nRC | 0: error <>0: ok |
| AMSTimeHwnd | Handle to the control |
| nRC | 0: error <>0: ok |
| AMSTimeHwnd | Handle to the control |
| Hour, Minute, Second (From) | smallest time |
| Hour, Minute, Second (To) | greatest time |
| nRC | 0: error <>0: ok |
| AMSTimeHwnd | Handle to the control |
| int nShow24Format | Show AM/PM or 24 hours |
| int nShowSeconds | 0 | 1 : Show Seconds |
E X A M P L E: See the script TestCtrlSupportEdit.ahk