Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CreateObject() bug?
Message
 
À
22/04/1997 07:32:31
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00029182
Message ID:
00029222
Vues:
27
>>
>> Here's an odd problem. I have the following code in the init of my form:
>>
>> set classlib to libs\ccontrols.vcx additive
>> x=createobject("tlbNavigation",this.Name,"cars")
>> x.Show()
>>
>> Basically, this should create my toolbar class passing it the name of the
>> form that created it and the name of the table it controls.
>>
>> Well, when I run the form nothing happens. No toolbar. But, if I type the
>> same code in the command window it works fine. Moreover, after I create it
>> from the command window it will work properly from within my form.
>>
>> Anyone with ideas?
>>
>> Michael.
>
>I haven't used toolbars that often, but I think you might try to put
>your main form in a formset and use the addobject method to instantiate
>your toolbar. I'm pretty sure they work better in a formset.
>
>HTH
>--
>Matt McDonnell
>
>Conventional Wisdom - "If it ain't broke, don't fix it."
>Gates Wisdom - "If it doesn't work, sell it, and fix it later."

instead of using X variable try to put the result of {CreateObject()} in a property of your form may be it's work better

Hope this help
Rocky Boy....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform