|
-
Oct 27th, 2006, 11:34 AM
#1
[RESOLVED] [2005] Testing whether a control exists
Is there some easy way to determine if a control exists? The problem I have is that I create an array of controls (labels for example) that gets re-dim'd from time to time. Id like to be able to say, if MyLabel(35).Exists then do something.
I have been using;
If MyPanel.Contains(MyLabel(35)) Then do something
but this craps out if the index is not valid, even if I wrap it in a try/catch.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|