Substring Example in .Net

Last Reply one year ago By dharmendr

Posted one year ago

WHy programer was placed the length of SubString upto 10 in the below link's reply - 

Generate Alphanumeric UniqueId based on Windows Form ComboBox using C# and VB.Net

Remark -  

i = i.Substring(10);

 

Posted one year ago

Hi AnkitPal,

You are generating 16 digit unique number.

From that unique number to get the sequence number for automatically increment Substring is used.

The substring starts at a specified character position mentioned and continues to the end of the string.

For more details on Substring Method refer below link.

https://docs.microsoft.com/en-us/dotnet/api/system.string.substring?view=netframework-4.7.2