Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rich Text problem
Message
De
12/03/1999 15:49:45
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
12/03/1999 02:11:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00195465
Message ID:
00196982
Vues:
31
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform