Substring Example in .Net

Last Reply 7 months ago By dharmendr

Posted 7 months 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);


You are viewing reply posted by: dharmendr 7 months ago.
Posted 7 months 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.