passing name of control Array to a Routine
Posted on 1999-11-16
I need to pass a name of controlArray to a Routine, so that i do not have to repeat the code every time i am using to set some of the controlArray properties
Whe i tried to do this i am getting an error message "Invalide property Assignemnet"
My code looks like this:
This is my control Array click event:
Private sub lblTemp_Click(Index as Integer)
DoSomething lblTemp, Index
This is the routine where i want to pass the control array name:
Private Sub Procedure DoSomething(lblLabel as Label, _
idx as Integer)
lblLabel(idx).caption = "Hello World"