The 1C:Enterprise developers forum
Hello!I would like to replace only the first character of a string.For example if I have 21232, I need to replace only the first figure 2 with "" (blank) in order to get returned 1232.If I would use StrReplace, I will get of course 13, because all three "2" will be replaced.Is there some function for replacing only the first character? Somehow StrIndexOf, I could not find it in help topics.Thanks a lot in advance!
Oops!What I needed was:
CustomerNumber = Right(CustomerNumber, StrLen(CustomerNumber)-1);