Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the Control Source for an OLEcontrol
Message
 
À
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:
00971512
Vues:
18
>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

Try adding quotes:
thisform.olecontrol1.controlsource = "thisform.filenameuse"
Montage

"Free at last..."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform