Click here to Skip to main content
15,880,956 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
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,....,


Thanks$Regards,

Raghu.
Posted
Comments
Prabhakaran Soundarapandian 3-Aug-12 5:02am    
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.
 
Share this answer
 
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.
 
Share this answer
 

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