Substring Example in .Net

AnkitPal
 
on Jan 29, 2019 12:26 AM
1766 Views

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

 

Download FREE API for Word, Excel and PDF in ASP.Net: Download
dharmendr
 
on Jan 29, 2019 12:32 AM

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