Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Controls
Message
De
22/02/2000 15:22:17
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
OLE Controls
Divers
Thread ID:
00335582
Message ID:
00335582
Vues:
44
Hello all. Ive got a pageframe that one of the pages has an OLE control who's control source is a general field in my table. Inside this field I store Word docs. After accomplishing the task of viewing and editing the docs with the form designer, I decided to try doing the same programmatically. On command.click I have the following code which came directly from the VFP6 Programmers Guide.


frm1 = createobject("form")
frm1.addobject("olb1","oleboundcontrol")
frm1.olb1.ControlSource = "AliasName.FieldName"
frm1.olb1.visible = .t.
frm1.visible = .t.

After much digging through the debugger, I came to find that the form was being created and the OLE object was being added with the proper ControlSource. But when it hit
>>frm1.olb1.visible = .t.
>>frm1.visible = .t.
I lost any and all signs of the form and of course the OLE object. It's of course like it never existed. Where did my OLE go?

Any thoughts?
Tom Welch
'They're coming to take me away...HaHa!'
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform