Vincent Teachout wrote:
> Just trying to avoid re-inventing the wheel.
> 
> I have a record with an 8 character length that stores dates in YYYYMMDD 
> format (Dtos() format)  I have no say in the field definition.
> 
> In my form, I'd like the user to be able to input the date in a field 
> with a "D" format code.
> 
> I COULD write some init() and save() code to translate, but just 
> wondering if there is some magic function/field/format/picture that I 
> don't know about.  Has to work both ways - change the incoming text 
> "YYYYMMDD" string to a date, and save the date back to the field as 
> dtos(user-date).
> 
> Don't knock yourself out - If such a beastie doesn't leap to mind, I'll 
> just do my work like I'm supposed to.....

Just a thought -- I'd create a container class that has the DATE and 
CHARACTER types, showing the one and storing the value in the other as 
appropriate.

Make sense?

-- 
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to