Changing: 1234X to 1234x

Hello

I have a variable lets say num_bers.

In my variable I have numbers and sometimes numbers with letters example:

num_bers = 1234
num_bers = 1234K
num_bers = 12111
num_Bers = 124126760j

The problem is that: If variable contains capital letter like: 1234K I would like it to be changed to : 1234k but if it is for example 1234l I would like it to stay this way: 1234l

how do I do that?

I understand i can do this by: set variable value but I don’t know the coding

Any ideas?

Use the ToLower method.

num_bers.ToLower

This change everything in a variable to a lower case correct?

Correct. Of course digits are unaffected because there is no upper/lower concept for digits.

1 Like

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