Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RTF tags and text
Message
From
26/05/2006 07:43:25
 
 
To
26/05/2006 07:16:20
John Faithfull
Hunterian Museum, University of Glasgow,
Glasgow, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Miscellaneous
Thread ID:
01125198
Message ID:
01125206
Views:
19
>Hello folks,
>
>I have a memo field accessed by an RTF edit control on a form.
>
>I can get the "text only" text from the current record by
>
>thisform.rtfbox.text
>
>How can I get the "text only" versions of the content (ie without any RTF formatting tags) programmatically, directly from the table when the form is not open?
>
>Thanks
>
>John

John,

I don't think you can without an rtf control, unless you parse the memo content
#define RICHTEXTCONTROL_CLASS	'RICHTEXT.RichtextCtrl.1'
obj = CreateObject(RICHTEXTCONTROL_CLASS)
obj.TextRtf = Table.MemoField
TextContent = m.obj.Text
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform