RE: Inserting a date

Author: Richard Kaye

Posted: 2014-03-25 at 14:54:57

You should use the KEYPRESS event, not the WHEN.

--

rk

-----Original Message-----

From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Sytze de Boer

Sent: Tuesday, March 25, 2014 3:23 PM

To: profoxtech@leafe.com

Subject: Inserting a date

Hi folk

In a new system I'm developing, I have a form with provision for a large edit box When a person is typing in this box, I want them to be able to insert a date at the point where the cursor is.

So, in the *when* procedure, I have it where if the person presses F5, it inserts the date.

The problem is, it inserts the date at the beginning of the Edit box instead of where the cursor is. Can someone help me out with this ?

--

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: ProFox@leafe.com

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/DF1EEF11E586A64FB54A97F22A8BD04422A727A6E5@ACKBWDDQH1.artfact.local

** 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.

©2014 Richard Kaye