Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with Memo field
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00126885
Message ID:
00126887
Views:
17
>I have a Memo field that was built from a text file.
>I wish to read the Memo field and break it into separate text files.
>For example, the first text file would be 60 lines;
>the second text file would be 60 lines;
>the third text file would be 60 lines and so on.
>
>The reason I need to do this is so I can fax the (former Memo field,
>now text files) as separate faxed pages.
>
>Any ideas? I know how to use APPEND MEMO and COPY MEMO, but I can't
>find a good way to do this. Thanks for your help.
cString1=""
cString2=""
cString3=""
For n=1 to MEMLINES(memofield)
 DO CASE
 CASE n<=60
  cString1=cString1+MLINE(memofield,n)+CHR(13)+CHR(10)  && i always forget the order 13-10 or oppsoite :)
 CASE n>60 AND n<=100
  cString2=cString2+MLINE(memofield,n)+CHR(13)+CHR(10)  
 ....
 ENDCASE
Endfor
** now you can FCREATE() files and FWRITE() cString(s) there.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform