>Thank you so much for the info! I was starting to think I'd never get a response and this error pretty much makes my app an embarrassment!
>
>Here's what I'm doing:
>**********************
>
>1) In the DESTROY event of my form:
> REPLACE mytable.memo WITH THISFORM.pf1.p_notes.rtf_notes.TextRTF
The Destroy() is probably not the best place for this. I would suggest comitting the data to the memo before the Release() Method of the form is invoked which will in turn fire the Destory() of the form.
>(the RTF control is within a pageframe just to be clear)
>
>2) In the LOAD event of my form:
> THIS.cText = mytable.memo
>
>3) Likely not important, but in the GOTFOCUS event of the RTF control:
> KEYBOARD '{CTRL+END}' (I was hoping to have the notes move to the end automatically (any suggestions?))
>
>4) In the LOSTFOCUS event of the RTF control:
> REPLACE mytable.memo WITH THISFORM.pf1.p_notes.rtf_notes.TextRTF
Do you crash on this code??? From the sounds of things, this is working.
>That's it! When I close the form, about 99% of the time, I get that error. It seems if I never do anything in the form (change records or access the notes page), the error will usually not occur.
>
>I am also noticing some difficulty with the notes being erased or at least not showing up properly within this control's area. The notes are being imported (one-time deal before I ever run the form) from a table with a memo field (mytable.memo), but the text was never RTF -- just plain text.
>
>I noticed your credentials; they are quite impressive. I've not been in touch with someone who's actually responsible for turning out VFP itself! I read where that was written in Microsoft C++ -- true?
Yes, VFP is written in VC++.
Tell you what Mark.... I will send you a VCX full of subclassed ActiveX Controls. And, I will send you a sample form showing how things work.
Good luck,
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only