I honestly never noticed the ADDITIVE clause in the REPLACE command.
Wow...learned something new today!
From VFP Help for those who hadn't noticed this either:
ADDITIVE
Appends to the end of the memo fields replacements to memo fields.
ADDITIVE applies to replacements in memo fields only. If you omit
ADDITIVE, the memo field is overwritten with the value of the
expression.
On 2014-08-11 11:38, Rafael Copquin wrote:
Thank you Tracy
Works like a charm!
Rafael
El 11/08/2014 12:33, Tracy Pearson escribió:
Rafael Copquin wrote on 2014-08-11:
I'm having a Monday morning memory lapse.
I have this memo field with text inside.
I need to add a time stamp and additional text and I do it thus:
With thisform.edit1
.enabled = .t.
replace curList.pv_mo with Replicate('*',100) + Chr(13)
additive
replace curList.pv_mo with Ttoc(Datetime()) + Chr(13)
additive
replace curList.pv_mo with Replicate('*',100) + Chr(13)
additive
replace curList.pv_mo with '' additive
.setfocus
EndWith
However, the cursor is placed at the _top_ of the memo field and
I want
it to be placed at the _very bottom_, so the user can start adding
text
in the normal way
How is this done please?
Rafael Copquin
Rafael,
Thisform.edit1.SelStart = len(thisform.edit1.value)
Tracy Pearson
PowerChurch Software
[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/d7f05db186fc8fe4b982718da783b...@mbsoftwaresolutions.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.