Re: Calling a subroutine from an array
- From: KAB <KAB@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 6 Feb 2006 05:43:20 -0800
"Harry Strybos" wrote:
"KAB" <KAB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in messageHi:
news:FB2E0D86-705E-4A2B-84E3-02804FE82AE6@xxxxxxxxxxxxxxxx
Hi:Why not simply use a control array?
I created an array of command buttons :
Dim Button(5) As CommandButton
and loaded the each button into the array using "set"
Set Button(0) = Name1 : Set Button(1)=Name2 .
I would like to call a subroutine using the name referenced by the array -
something like:
Call Button(x).Name
Does anyone know if this is possible in VB?
Thanks
KAB
Thanks for the reponse, I'm new to Visual Basic so I don't know about
control arrays. I'll take a look at this.
Thanks again
KAB
.
- References:
- Re: Calling a subroutine from an array
- From: Harry Strybos
- Re: Calling a subroutine from an array
- Prev by Date: Re: Design Problem
- Next by Date: Re: Calling a subroutine from an array
- Previous by thread: Re: Calling a subroutine from an array
- Next by thread: Re: Calling a subroutine from an array
- Index(es):