Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extra space on Memolines
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00675123
Message ID:
00675142
Views:
20
This message has been marked as the solution to the initial question of the thread.
>Thank you Gerald,
>>The ALINES function will return your text in an array one line per row.
>>The 3th param will even trim the lines for you if you wish.
>>
>>From the array it will be easy to perform your changes and write back the text to the memo...

>
>That's what I was looking for - kind of like a SCATTER TO ARRAY for a memo field. Is there a corresponding function that GATHERs the array elements back into a string (with CHR(13)s) that can be REPLACED into the memofield, or is that an exercise that is left to the reader?
>(with apoligies to Whil Hentzen...:-) for stealing his line)

Its left to the reader as you said :-)

But basically its a five lines coding process
MyText=""
for i = 1 to alen(myarray,1)
   MyText=MyText+myArray[i,1]+chr(13)
endfor
replace myMemo with MyText
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform