Hope this helps.
Hmm, there is probably a better way to do this, because I made this off the top of my head, but :
vbcode:
Dim this As Integer = 1010101777
Dim mystring As String = System.Convert.ToString(this)
For x As Integer = mystring.Length - 3 To 1 Step -3
mystring = mystring.Insert(x, ",")
Next
c++ code:
int this1 = 556654;
System::String ^ mystring;
mystring = System::Convert::ToString(this1);
for(int x = mystring->Length-3; x > 0; x -= 3)
{
mystring = mystring->Insert(x,",");
}
This will do the job for you. I was surprised it actually works, but it does.
Edit: Oh yeah, you probably know this but the "this" and "this1" are just used as an example, you can use any numbers you want.
Sorry I don't know how to do for loops in C# if that's what your using, but you should get the idea.
There I go again, making functions for thing that already exist(tostring("N")).