Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the Control Source for an OLEcontrol
Message
From
22/12/2004 13:14:49
 
 
To
22/12/2004 13:05:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
00971511
Message ID:
00971518
Views:
19
This message has been marked as the solution to the initial question of the thread.
>Hi,
> I am trying to add an Olecontrol (richtextcntrl) to a form. In the init, I put the following code:
>
>parameter pcfilename
>thisform.filenameuse = pcfilename
>thisform.olecontrol1.controlsource = thisform.filenameuse
>
>pcFilename is a full path and file name. But the error I am getting says:
>"The data source for this object must be a variable reference."
>
>What am I doing wrong?
>
>Thanks,
>Beth

hi Beth,

Does this work ?
thisform.olecontrol1.FileName = thisform.filenameuse
You would use ControlSource if the filecontents or the rtf data were stored in a binary memo field
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform