StrictDateEntry
This text box property, added in Visual FoxPro 5.0, allows several shortcuts to date and datetime entry.
Usage |
txtDateTime.StrictDataEntry = nOption nOption = txtDateTime.StrictDateEntry |
Parameter |
Value |
Meaning |
nOption |
0 |
Loose, allowing several shortcuts and new key characters. |
1 (default) |
Strict. Same as required form in older versions. |
Example |
oForm = createobject("form") oForm.AddObject("txtDateEntry","TextBox") WITH oForm.txtDateEntry .Visible = .t. .DateFormat = 14 && long .Width = 312 .Value = DATETIME() .StrictDateEntry = 0 ENDWITH oForm.Show() * Key in a value, such as ^-2-14, and press Tab to observe the * string properly translated. |
See Also |