Re: Inserting a date

Author: Fred Taylor

Posted: 2014-03-25 at 16:10:39

You can position the cursor in the EditBox by setting the SelStart

property. Note that .SelStart is 0 is at the beginning of the field.

Fred

On Tue, Mar 25, 2014 at 1:42 PM, Sytze de Boer <sytze.kiss@gmail.com> wrote:

> Hi folk

> I have something working which does it for the moment

> In the When I have ON KEY LABEL F5 do sas144

> This is turned on Valid

>

> Sas144.prg goes:

> IF !EMPTY(notes)

> replace notes with ALLTRIM(notes)+CHR(13)+DTOC(sysdate)+CHR(13)

> ELSE

> replace notes with DTOC(sysdate)+CHR(13)

> ENDIF

>

> The only annoying thing with this is the cursor keeps going to beginning of

> the Edit field

> I think I've read how you can "position" the cursor at the end of the memo,

> but I'll leave that for another day.

>

>

>

>

>

>

>

>

>

>

> On Wed, Mar 26, 2014 at 9:26 AM, Jean MAURICE <jsm.maurice@wanadoo.fr

> >wrote:

>

> > That's right ! I did not think about that ...

> >

> > The Foxil

> >

> > Le 25/03/2014 21:04, Fred Taylor a écrit :

> >

> > Won't work if the insert mode is in overstrike, data would be

> overwritten.

> >>

> >> Fred

> >>

> >>

> >> On Tue, Mar 25, 2014 at 12:52 PM, Jean MAURICE <jsm.maurice@wanadoo.fr

> >> >wrote:

> >>

> >> I think the best way to do this is to do a 'good old'

> >>>

> >>> KEYBOARD DTOC(date())

> >>>

> >>> In the F5 key ...

> >>>

> >>> The Foxil

> >>>

> >>>

> >>>

[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/CAJCBkspQKrT-_2WuOgk5MaeZ2U_ohh2w1n__5z8AgUBO6_LA1w@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.

©2014 Fred Taylor