1. RE: date help

George Walters wrote:
> Has anyone written a rtn to handle entry of a date in an editText field? 
> I'm
> looking for a rtn to add the '/'s during entry and also be able to 
> handle
> edits properly of the field...
George,

You will need to get a hold of datetime.e written by Carl White from the 
archive.  It's an excellent library for date/time 
maniuplation/calculation.    "Two Thumbs Up!"  There's a routine in his 
library called "ValidDate".  Also if you download my Timesheet program 
from the "Recent Contributions" page there are two routines to handle 
formatting a date for display in an edit window and converting that 
character value to numeric for validation (CvtDate and ExtractDate).  
The timehseet program uses dates pretty extensively.  Also, I would 
suggest if you are requiring the user to input a date try using the 
MonthCalendar control in Win32lib.  Makes date entry much easier.  

Hope this helps.

Jonas

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu