Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement