Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the Control Source for an OLEcontrol
Message
De
22/12/2004 13:14:49
 
 
À
22/12/2004 13:05:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Divers
Thread ID:
00971511
Message ID:
00971518
Vues:
20
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform