Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting memo contents to general
Message
From
26/05/2006 11:15:11
 
 
To
26/05/2006 11:10:06
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:
01125294
Message ID:
01125296
Views:
21
>Hello folks,
>
>Thanks very much for the assistance so far. Last enquiry before the weekend.
>
>For various reasons, I need to use the horrible General field type to hold RTF text so that it will print formatted on a report...
>
>However, the RTF editing form control can only use a memo field as control source...
>
>So after editing I need an explicit way of updating the General field contents with any revised memo contents. General fields seem a pain to populate.
>
>Following recommendations, I've tried this in the RTF box lostfocus method:
>
>=strtofile(notes,"oot.rtf")
>append general gnotes from "oot.rtf"
>
>However unsurprisingly, this is grindingly slow and makes the navigation really clunky.
>
>I've tried playing with the append general command to find a way of directly writing a string without writing it to disk, but so far without joy. It seems as though there must be a way to do this. Is there?
>
>Thanks in advance
>
>John

John,

I would leave the contents of the rtf in the memo field and only use append general to a temp cursor which will be used by the report
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform