how to remove first three character from string...help its urgent?

csharp Antarctica
  • 10 years ago

     hi friends ..i have string like this "+919824335667"..now i want remove first three charcter ..

    so i want only number 9824335667.

  • 10 years ago

    Please use substring for the string that you want

    i.e : 

    Dim sNumber as String = "+919824335667"

    MsgBox(sNumber.Substring(3))

  • 10 years ago
    String oldString = ""+919824335667";string newNumber = oldString .Remove(0, 3);

     

    It will help u.

  • 10 years ago

    String oldString = ""+919824335667";

    string newNumber = oldString .Remove(0, 3);

     

    It will help u.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“A computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match” - Bill Bryson