Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CreateObject() bug?
Message
 
To
22/04/1997 07:32:31
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00029182
Message ID:
00029222
Views:
25
>>
>> 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....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform