Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(index>-1)
- {
- CString numberstring=Str.Right(Str.GetLength()-index-1);
- int number=isNumeric(numberstring);
- if(number>-1)
- {
- number++;
- numberstring.Format("%i",number);
- while(numberstring.GetLength()<3)
- numberstring="0"+numberstring;
- Str=Str.Left(index+1)+numberstring;
- return;
- }
- if(!numberstring.GetLength())
- {
- Str+="000";
- return;
- }
- }
Add Comment
Please, Sign In to add comment