DATEGET - new date only input class
Posted: Wed Dec 28, 2011 6:04 pm
Datepicker is great for getting dates because of it´s calender widget.
But if you want to allow the user to leave date fields empty, datepicker is unuseful because it doesn´t allow empty dates.
So I created this simple input class.
The input mask is created automatically by the programs SET DATE setting. Maxlength is set automatically.
Validation: if the input is an invalid date, the last value is restored when leaving the DATEGET control.
Alignment, CaretPos, OnEnter, PassWord and the basic methods (FONT, DISABLEDFONTCOLOR, VISIBLE, ...) are supported.
But if you want to allow the user to leave date fields empty, datepicker is unuseful because it doesn´t allow empty dates.
So I created this simple input class.
Code: Select all
DEFINE DATEGET oDateGet
ROW 10; COL 10
WIDTH 100; HEIGHT 20
VALUE <dValue>
END DATEGET The input mask is created automatically by the programs SET DATE setting. Maxlength is set automatically.
Validation: if the input is an invalid date, the last value is restored when leaving the DATEGET control.
Alignment, CaretPos, OnEnter, PassWord and the basic methods (FONT, DISABLEDFONTCOLOR, VISIBLE, ...) are supported.