Author: Fred Taylor
Posted: 2014-03-27 at 13:10:21
Thanks for the reminder, Ted. I just recently ran into the SET FUNCTION
code setting keys in converting an old DOS app into VFP. I wondered what
the difference was between SET FUNCTION and OKL.
Fred
On Thu, Mar 27, 2014 at 11:04 AM, Ted Roche <tedroche@gmail.com> wrote:
> On 03/25/2014 03:23 PM, Sytze de Boer wrote:
> > 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 ?
> >
> >
> Try:
>
> SET FUNCTION 5 TO DTOC(DATE())
>
> That's an ancient keyboard macro, not an OKL, and it doesn't have the
> potential of wreaking havoc with the event loop as an OKL does.
>
> (Ref: HackFox7 On Key Label entry)
>
> --
> Ted Roche & Associates, LLC http://www.tedroche.com/
>
>
[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/CAJCBksq2pwJz2dSKuqDjDGn-=WHtb8MxaOGVDnD5Jr+txRYKMg@mail.gmail.com
** 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.