setting date using a slash (/)

Kenneth Brody kenbrody at spamcop.net
Wed Jun 10 09:38:21 PDT 2009


Richard Kreiss wrote:
> Is there a way to capture the fact that a slash was used to enter a date.
> 
> I have a process that will force any date entered into the field to be
> posted to a record as the last day of the month.  In the case where a slash
> is used, the date need to be the current date.  So, I need to know is a
> slash was used.

What if they manually type today's date in its entirety?  Do you still want 
that to be changed to the last day of the month?

Would it suffice to say "if it's today's date, leave it, otherwise make it 
the last day of that month"?

> I tested @sk = "/" but it appears that the expansion takes place before @sk
> captures the key stroke.

First, @SK will never equal "/".  Second, the last key the user pressed was 
probably Enter and not "/".

-- 
Kenneth Brody


More information about the Filepro-list mailing list