Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: VB5,VB6
Expertise: beginner
Jul 31, 1999

VBControlName - The name of a VB control

' the name of a control given the corresponding VBControl object
' (accounts for items in control arrays)

Function VBControlName(vbc As VBIDE.VBControl) As String
    Dim index As Long
    index = vbc.Properties("Index")
    If index < 0 Then
        VBControlName = vbc.Properties("Name")
    Else
        VBControlName = vbc.Properties("Name") & "(" & CStr(index) & ")"
    End If
End Function
Francesco Balena
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date