PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
Trapping Keystrokes, AGAIN
Trapping Keystrokes, AGAIN
Started by Rich Scheuermann, Sep., 05 2005 8:18 PM - 1 reply
Connect yourself…
Rich Scheuermann
#1
Posted on September, 05 2005 - 8:18 PM
First, thanks for the replies.
Now, to be more specific, I want to set up a date entry to accept alpha characters so I can implement Quicken-Like entries. Ie, 't' = Today, '+' = next dat, '-' = previous day, etc.
How to do this?
Thanks
Report
0
0
AL
#2
Posted on September, 05 2005 - 10:30 PM
G'day Rich
The problem you will have is that a date field will only accept numbers
The edit control code options for "When modified" will not work because the control date mask will not accept a letter and the "On entry" only works when you first enter the field.
You will have to implement Raimund's suggestion and use an event.
Use the additional options in the control,select the KeyDown option and use something like this
IF _EVE.wparam = 116 OR _EVE.wparam = 84 THEN // equals t or T
MySelf = DateSys()
END
You can create a global proc to test all the letters you wish to trap in date fields
Regards
Al
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text