To use "B" and numbers in a condition

how do I make a condition with the letter “B” and any other number that comes after it?

For example: I have a code where the letter “B” is the first character and after it comes numbers, and I wanted to set up a condition where any number is taken.

Use the left, right, length, and isnumeric functions:

left(“B12345”,1)=“B” And right(“B12345”, (“B12345”).Length-1).IsNumeric

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.