General information
Category:
Coding, syntax & commands
>>
>> 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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only