Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control Arrays -- how to make 'em
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00096935
Message ID:
00098383
Vues:
38
Sarah,

Yes it's 5, in 3 you have to use the appropriate container collection array. But you can do a psuedo for each with 1 line of code which might save a few array refs:
for i = 1 to this.ControlCount
   oControl = this.Controls[i]
   ...
endfor


>>Jeff,
>>
>>You can process the thisform.Controls[] array and create another array of three columns.
>>
n = 1
>>for each oCoontrol in this.Controls
>>   if ( "cbo" $ oControl.Name )
>>      dimension this.maPairing[n,3]
>>      n = n + 1
>>      this.maPairing[n,1] = oControl
>>   endif
>>endfor

>>
>For each --- is it new to VFP5? can't find it in my VFP3 help! Looks like a useful command.
>
>Sarah
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform