Hi,
I’m stuck on a Switch Expression. I want to use a switch based on the first letter in the string “textInDagbokField”.
How do i write the Expression?
I’ve tried to read other topics, but I’m not able to use that information to solve my case.
Hi,
I’m stuck on a Switch Expression. I want to use a switch based on the first letter in the string “textInDagbokField”.
How do i write the Expression?
I’ve tried to read other topics, but I’m not able to use that information to solve my case.
store your data in one variable and do substring and take only first letter and pass in switch.
Thanks and Regards,
Parvati
Hi,
Hope the following expression helps you.
System.Text.RegularExpressions.Regex.Match(textInDagbokField,"^\*?[A-Z]{3}").Value
Regards,
If it is really the first 3, but in your cases you have 4…
Expression = textInDagbokField.SubString(0,3)