Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Assigning combo's RowSource
Message
De
25/05/2010 15:09:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01465931
Message ID:
01465950
Vues:
114
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'
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform