Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting memo contents to general
Message
From
26/05/2006 11:14:50
 
 
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:
01125295
Views:
25
My best advice is to avoid general fields, AT ALL COST! Use a binary memo field in stead,

>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
Previous
Reply
Map
View

Click here to load this message in the networking platform