G
Guest
Hello,
This is gonna sound real daft, but how do I test a Select Case statement for
variants of a theme?
Here's a snippet of my code...
Select Case sUsr
Case "Guest", "TsInternetUser", "krbtgt", "quality7"
' don't show
Case Left(sUsr, 13) = "SystemMailbox"
' don't show
Case Else
ListBox1.Items.Add(sUsr)
End Select
What i'm trying to do is find any sUsr variable that begins with
'SystemMailbox' and exclude it. If I use the code shown above it helpfully
informs me that the input string is not in the correct format. Is there any
way of using wildcards, or making the above sample correct?
Cheers,
Mike
This is gonna sound real daft, but how do I test a Select Case statement for
variants of a theme?
Here's a snippet of my code...
Select Case sUsr
Case "Guest", "TsInternetUser", "krbtgt", "quality7"
' don't show
Case Left(sUsr, 13) = "SystemMailbox"
' don't show
Case Else
ListBox1.Items.Add(sUsr)
End Select
What i'm trying to do is find any sUsr variable that begins with
'SystemMailbox' and exclude it. If I use the code shown above it helpfully
informs me that the input string is not in the correct format. Is there any
way of using wildcards, or making the above sample correct?
Cheers,
Mike