Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,140 of 10,840    |
|    The Mess to All    |
|    How to pass a Control Array - VB5    |
|    10 Jan 05 17:38:18    |
      From: email@none.com              I would like to pass a Control array of OptionButtons that I created at run       time to a Sub.              Say I have Opt(0), Opt(1)......Opt(5) as OptionButtons, is there a way to       pass Opt to a function and have the function see it as an Array of       Optionbuttons?              private sub Test(a as Object) is the best I can come up with so far. I       would like to test it to verify that it is both an array and an       OptionButton. Although I can check it with typename(Opt(opt.lbound)) for the       OptionButton part I am relying on Error checking to check to see if it is an       array. Is there a better way?              Thanks.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca