>I have a memo field called textx
>
>My objective is to be able to print it on a document making sure that CR and LF characters in the memo field perform their proper function when the data is printed
>
>Can I use the alines() function to put the memo field into an array call nlines - the determining definition of a line is one which ends with a CR and LF
>
>If so how?
possibly you open up VFP IDE enter MODIFY COMAND and do a short test such stuff? It's not realy tricky and will not leave a trace.
CREATE CURSOR TestMe (mField m)
lnMemo = 'ABC'+0h0D0A+'DEF'+0h0D0A+'GHI'
INSERT INTO TestMe VALUES (lnMemo)
LOCAL ARRAY;
laLines(1)
lnLine = ALINES(laLines,mField)
?lnLine
DISPLA MEMO LIKE laLines
USE
it will teach you more then a simple Yes
Update:
You need the enter the following key strokes after entering the code
[CTRL]+A;[SHIFT]+F10;X
I use that so much, I have a macro for it.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]