|
|
|
Click here to copy the following block |
Function ValidateVBName(ByVal VBName As String, Optional ByVal acceptTypeChars _ As Boolean, Optional ByVal acceptDots As Boolean) As Boolean Dim i As Long If Len(VBName) = 0 Or Len(VBName) > 255 Then Exit Function For i = 1 To Len(VBName) Select Case Asc(Mid$(VBName, i, 1)) Case 65 To 90, 97 To 122 Case 48 To 57, 95 If i = 1 Then Exit Function Case 37, 38, 33, 35, 64, 36 If i < Len(VBName) Or Not acceptTypeChars Then Exit Function Case 46 If i = 1 Or Not acceptDots Then Exit Function Case Else Exit Function End Select Next ValidateVBName = True End Function |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|