Rather than help you with the algorithm for this, I'd be very curious to know why you need to append all those values into comma separated strings and what you intend to do with the strings... My (exceptional) sixth sense tells me that you're trying to do something that does not need to be done... IOW, you're planning on splitting the values someplace, again.
On Feb 3, 4:45 pm, Sruthi <[email protected]> wrote: > Here i am retrieving mobile numbers from database like 9849098490 > (means 10 digit).And i am getting hundreds of numbers to a variable. > > so i need to divide those numbers into 100 numbers into a string with > commas. > > means if i have 245 mobile numbers then i need to divide those numbers > to three strings like first 100 numbers to str1,next hundred numbers > to str2 and remaining 45 numbers to str3. > > above situation is an example. > > if i have mobile numbers like 850 then i have 9 string variables. > > I want in a line(10 digit numbers string) also appended a comma for > every 10 digit number except before first number and after last > number. > > Means 9849098490,9849098490,9849098490 here three 10 digit numbers are > there and separated with two commas only. > > i want like > > str1 =919849098490,919849098490,919849098490 > > any suggestions plzzzz.. >
