Thank you Stephany, Cor and Herfried! That was what I was looking for.
And I am aware of needing recursion for containers but in my case that
is not necessary. Again I am grateful to all the Gurus on this NG and
especiallly you 3. I lurk and learn. So your work not only helps those
whose answer you provide but a lot of us who are watching you as
mentors.
Thanks,
John
On Mon, 4 Apr 2005 13:24:54 +0200, "Herfried K. Wagner [MVP]"
<hirf-spam-me-(E-Mail Removed)> wrote:
>"J L" <(E-Mail Removed)> schrieb:
>>I am trying to step through the controls on a form and take some
>> action when I find a specific type. I dont know how to express this in
>> an If or Select clause.
>
>\\\
>If TypeOf Ctrl Is TextBox Then...
>///
>
>- or -
>
>\\\
>If Ctrl.GetType Is GetType(TextBox) Then...
>///
>
>'Select Case':
>
>\\\
>Select Case True
> Case TypeOf Ctrl Is TextBox
> ...
> Case TypeOf Ctrl Is Button
> ...
> ...
>End Select
>///
|