Sytze,
In the Date TextField put the following in the Gotfocus() Event
if Empty(This.Value)
This.Value = Date()
keyboard "{backspace}"
This.SelStart = 0
This.SelLength = 2
endif
That should do what you want.
Dave
-----Original Message-----
From: ProFox [mailto:[email protected]] On Behalf Of Sytze de Boer
Sent: 18 June 2013 03:24
To: profox
Subject: Date in Grid
In this instance, I use a grid to enter data, 1 column of which is a Date field
The date fields defaults to today If the user enters 15 and presses enter, it
ends up with "invalid date"
If the user enters 1504 (where the slash is automatic), the system auto adds
the year
I want it to auto enter the current month and year Possible ?
--
Kind regards
Sytze de Boer
Kiss Software
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.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.