Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assigning combo's RowSource
Message
From
25/05/2010 15:09:12
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01465931
Message ID:
01465950
Views:
113
This message has been marked as the solution to the initial question of the thread.
>>Hi everybody,
>>
>>I have this code failing
>>
>>
>>SELECT * FROM prof_ctr INTO ARRAY this.arrProfitCenters
>>this.pc_Combo1.RowSourceType = 5
>>this.PC_Combo1.RowSource = 'this.arrProfitCenters'
>>
>>
>>This in this code refers to the class. The RowSource assignment line is giving me an error 'property arrProfitCenters' is not found.
>>
>>The array exists and I verified its content in the debugger.
>>
>>Do you see what am I missing here? Can I use class based array or I must add this array to the form instead? The class is added to the page in run-time.
>>
>>Thanks in advance.
>
>No ideas from anyone?

Try
this.PC_Combo1.RowSource = 'this.parent.arrProfitCenters'
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform