B
Brent McIntyre
Good evening all,
I am trying to set-up an array of procedures, which HELP informs me is
impossible, so as a secondary idea I thought I could set up an array of
initializing an event, which I also seem unable to do.
What I am basically trying to do, is set-up an array that can somehow
initialize procedures, as I have nearly two-hundred panels I need to
cycle through and I don't want to use an extended IF Statement.
Any help you may be able to provide would be much appreciated. Please
see the example below of what I am basically trying to do.
Yours sincerely,
Brent McIntyre
EXAMPLE of current set-up
If Selection_Variable = 1 then
Procedure_Panel_One_Selected
Else
If Selection_Variable = 2 then
Procedure_Panel_Two_Selected
Else
etc....
End If
End If
EXAMPLE of what I would like
Procedure_Panel_Selection(1) ' Which would the run
Procedure_Panel_One_Selected
This takes a lot less code and can allow me to make my code easier for
others to read and understand.
I am trying to set-up an array of procedures, which HELP informs me is
impossible, so as a secondary idea I thought I could set up an array of
initializing an event, which I also seem unable to do.
What I am basically trying to do, is set-up an array that can somehow
initialize procedures, as I have nearly two-hundred panels I need to
cycle through and I don't want to use an extended IF Statement.
Any help you may be able to provide would be much appreciated. Please
see the example below of what I am basically trying to do.
Yours sincerely,
Brent McIntyre
EXAMPLE of current set-up
If Selection_Variable = 1 then
Procedure_Panel_One_Selected
Else
If Selection_Variable = 2 then
Procedure_Panel_Two_Selected
Else
etc....
End If
End If
EXAMPLE of what I would like
Procedure_Panel_Selection(1) ' Which would the run
Procedure_Panel_One_Selected
This takes a lot less code and can allow me to make my code easier for
others to read and understand.