VB and VBA Users Source Code: Determine if a control is part of a control array
[
Home
|
Contents
|
Search
|
Reply
| Previous | Next ]
VB/VBA Source Code
Determine if a control is part of a control array
By:
Andrew Baker
Email (spam proof):
Email the originator of this post
Date:
Thursday, August 15, 2002
Hits:
910
Category:
Windows Forms/GUI/Controls/Graphics
Article:
The following code can be used to determine if a control is part of a control array (i.e. the control is indexed): 'Purpose : Determines if a control is part of a control array 'Inputs : oControl The control to test 'Outputs : Returns True if the control is a control array 'Author : Andrew Baker (www.vbusers.com) 'Date : 01/12/2000 13:17 'Notes : 'Revisions : 'Assumptions : Function ControlIndexed(oControl As Control) As Boolean Dim lIndex As Long On Error GoTo ErrNotIndexed lIndex = oControl.Index ControlIndexed = True Exit Function ErrNotIndexed: ControlIndexed = False On Error GoTo 0 End Function
Terms and Conditions
Support this site
Download a trial version of the Excel Workbook Rebuilder