Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box Question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00432612
Message ID:
00432625
Views:
17
>What method would someone put the commands like
>
>this.rowsourcetype=5 && array
>this.rowsource=my_array
>this.visible=.t.
>
>My trouble is that if I make my array from the commandline a combo box on a form work fine, but when I try to make the array within the init method of the control itself, the combo box is always empty
>
>here is the actual code. and I woud like to put this code in one of the methods of the control
>Can this be done ?
>
>
>m_atlist="*.*"
>if adir(m_lll,m_atlist)=0
> this.visible=.f.
>else
> this.rowsourcetype=5
> this.rowsource=m_lll
> this.visible=.t.
>endif
>
>Thank you ..
>
>Bob Lee

Make your array a form property and then use that property in your ADIR, control source, etc.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform