T
Tom C
Is there a faster, sleeker way to do the following? Maybe something
with regular expressions?
Dim Code As System.String = "(EntityName) Code"
Dim pos As Integer = Code.IndexOf(" "c)
Dim EntityName As System.String = Code.Substring(1, pos - 1I)
EntityName = EntityName.Replace("(", "")
EntityName = EntityName.Replace(")", "")
Code = Code.Substring(pos).Trim(" "c)
with regular expressions?
Dim Code As System.String = "(EntityName) Code"
Dim pos As Integer = Code.IndexOf(" "c)
Dim EntityName As System.String = Code.Substring(1, pos - 1I)
EntityName = EntityName.Replace("(", "")
EntityName = EntityName.Replace(")", "")
Code = Code.Substring(pos).Trim(" "c)