Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Amembers() problem
Message
 
À
12/02/2019 10:40:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01666312
Message ID:
01666332
Vues:
38
>>>>I have an object with some properties.... In the debug i can see al properties, but when i use amembers it returns an incorrect number....11 instead the real number of properties contained in the object... Look at the image where you can see all the properties and the the amembers() result...
>>>
>>>What members does aaa show?
>>Only those properties i have set as controlsource of textboxes i have in the form i am using....
>
>Maybe that's how it works in this case.
>
>If you have a legitimate item like a controlSource populated, then it recognizes that as a member, but if it's just a value in the control itself without any external references then it doesn't access them? I don't know. Try to add some controlSource items to others and see if the number goes up.
>
>As a workaround, manually create an array with thisForm.controlCount (or whatever your parent container is), and then populate manually with an iteration through the .controls[] array.
I made it, but the problems is that to make the iteration i used amembers() and a for endfor, but amembers() gave me uncorrect number of items....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform