Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control array
Message
 
 
To
27/04/1998 15:27:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00095209
Message ID:
00095249
Views:
21
Kenneth,

From all I know it's was rather lame-brained attempt my editorialization *g* to mimic something from VB which doesn't have inheritance. Personally I've never used it.

Tell us what you are trying to do, and we'll be able to point you at a solution where that doesn't involve trying to use the control array or nIndex.

You can use the Form.Controls[] collection array to step through all of the form controls to manipulate them. As far as event handling goes that is really done by method code in the subclasses of the controls that you create.

>Thanks. Then how about the parameter nIndex passed to event procedures?
>In the Help it says
>
>"Uniquely identifies a control if it is in a control array"
>
>and the definition of control array
>
>"A group of controls that share common names, types, and event procedures. Each control has a unique index. When a control in the array recognizes an event, it calls the event procedure for the group and passes the index as an argument, allowing your code to determine which control recognized the event."
>
>I wonder there must be some way to create such kind of things. The most important things is they share common names, and have a unique index.
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