Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RTF tags and text
Message
De
26/05/2006 07:43:25
 
 
À
26/05/2006 07:16:20
John Faithfull
Hunterian Museum, University of Glasgow,
Glasgow, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Divers
Thread ID:
01125198
Message ID:
01125206
Vues:
23
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform