need help in removing the first characters in a number then adding 1 to the number then returning the 2 first characters that were removed. example i want to remove CR FROM CR499 THEN i add 1 to 499 then add back the CR.
any help will be appreciated

Re: string and sequential numbers 80 80

You can easily do that using the functions SUBSTRING ,REPLACE etc.

Re: string and sequential numbers 80 80

u have a sample code that that i can look at

Re: string and sequential numbers 80 80
Dim source As String = "CR499"
Dim code As String = source.Substring( 0, 2 )
Dim value As Integer = Convert.ToInt32( source.Substring( 2 ) ) + 1

source has the original string, code has "CR", and value is an integer with the value of 500. Is that what you're trying to do?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.