Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quicken Dates
Message
From
21/05/2001 02:21:16
Walter Meester
HoogkarspelNetherlands
 
 
To
20/05/2001 10:08:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00509194
Message ID:
00509332
Views:
23
Hi Rick,

i've implemented my own one.
In the keypress I check if a character is pressed. If so, I empty the controlsource property to allow character to be entered. In the Valid event I check if the value is date or character.

If the users has entered the following characters it calculates the date:
C      Current date
C+1 Tomorrow
C-1 Yesterday
C+2 The day after tommorow
BW Beginning of this week
BW+1 Beginning of next week
EW End of this week
BM Beginning of this month
BM+1 Beginning of next month
BY Beginning of this year
BY+2 Beginning of the year after next year.
Mo this monday
Mo+1 Next monday
Tu Tuesday
We Wednesday
...

After this, it resets the controlsource to display the corresponding date.

If a user gets used to this, it's far easier than using a calender control or something. Date entry could be very fast.

Walter,

>OK I admit it, I've led a sheltered life (at least for non-MS and FoxPro developed applications). A user asked for a Date text box that used the "Quicken" style hot keys. I said "No Problem!". Well, I got the fact that '+' advances the day and '-' decrements it, but what are the other conventions that I'll need to implement?
>
>Rick
Previous
Reply
Map
View

Click here to load this message in the networking platform