Click here to Skip to main content
15,114,922 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have no idea on how to increment numericstring values. Ex: I have the current time string str = "3AM" and next values should be like 4AM,5AM,6AM,....,


It should hold all the values with comma (,) ????
or you want to replace 3AM to 4AM
[no name] 3-Aug-12 11:04am
There is no such thing as a numericstring. Get the hour as an int and increment that.

Use StringBuilder and append your values.
extract numeric part from string part, increment numeric part and then Append it to string part.

If this is not exact solution, then kindly elaborate your question more.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900