Reading Characters

I am trying to read a registration number say 0001234567890.

I want to assign this number to a variable by ignoring first three zeros say 1234567890.

First 3 zeros will be static remaining 10 digit numbers will be dynamic. What ever the registration number i am reading it should ignore the first 3 zeros and assign the remaining 10 digits to a variable. Help needed.

If you assign it directly to a integer type variable, it will ignore all the zeroes before the value @Robotics

@Robotics You can use a substring.

RegNo = 0001234567890
RegNoSub = RegNo.Substring(3).ToString


1 Like

Hi @Robotics,

You can use Outvariable.Remove(0,3)


1 Like

If you find it useful mark it as solution and close the thread.

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