Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pulling text from an RTF File
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01003428
Message ID:
01003495
Views:
24
This message has been marked as the solution to the initial question of the thread.
oRich = CreateObject("RICHTEXT.RichtextCtrl.1")

oRich.TextRTF = YourRTFFormattedText

? oRich.Text && see it as plain text
? oRich.TextRTF && see it as RTF text
You can put that code in a scan loop. If you have files on disk use ADIR() to give you an array of filenames to iterate over. You can use filetostr() to get the file content.

>If we want to loop through RTF files and pull their text out and put them in a memo field of a table without stopping, how would we do that?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform