Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extract text from General field and place in binary Memo
Message
From
17/12/2003 08:49:48
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00859653
Message ID:
00859851
Views:
32
Yuri,

I get
Operation is invalid for a General field.
on the
LPARAMETERS pGenFieldName
line.

Renoir


>Jay,
>
>Try this:
>
>use (yourtable)
>local oForm
>oForm = Createobject('_Form',(GeneralFieldname))
>lctext=oForm.myOLe1.OBJECT.Content.Text
>oForm.release
>REPLACE (memofield) WITH lctext
>Return
>*----------------
>Define Class _Form As Form
>	PROCEDURE iNIT
>		LPARAMETERS pGenFieldName
>		this.addobject('myOLe1',"OleBoundControl")
>		this.myole1.ControlSource = ALIAS()+'.'+pGenfieldName
>	ENDPROC
>Enddefine
>
>
>>I have a word document placed into a General field, but want the contents (text) copied over to a Memo field. I can manually double-click on the contents of the the General field, highlight all the text and then copy/paste into the Memo field, but I want to do it progmatically. Can this be done? Thanks!
>>
>>Regards, Renoir
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform