Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control Arrays -- how to make 'em
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00096935
Message ID:
00098383
Views:
34
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
Previous
Reply
Map
View

Click here to load this message in the networking platform