Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rich Text problem
Message
From
12/03/1999 15:49:45
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
12/03/1999 02:11:40
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00195465
Message ID:
00196982
Views:
24
>>>How do I add text from two rich text memofields to a third one?
>>
>>Looking at the Help file, the control has a TextRTF property, so I assume you could just...
>>
>>loRTF1.TextRTF = loRTF2.TextRTF + loRTF3.TextRTF
>I have tried that, but them I only get the data from loRTF2 copied to loRTF1.

Hmm, yes, I've actually tried to run this now and I see your point. I think what is happenning is that RTF text is surrounded by a start and end text marker, so simply adding two sets of rtf text together isn't very useful.

You could examine the RTF text, work out what the end and start markers are, then remove the end marker from the first lot of text and remove the start marker from the send lot of text. Then when you add them it might just work.

I also looked at using the SelRTF property, rather like SelText in a textbox. This might work, but I can't see an easy way of setting the text insertion point to the end of a block of text.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Reply
Map
View

Click here to load this message in the networking platform