Use Generics to store the list of Numbers../

On Thu, Feb 4, 2010 at 1:04 PM, Shameem A. Sathar Thalapurath <
[email protected]> wrote:

>
> Use dynamic arrays of strings. Iterate through each rows and concatenate.
>
> Regards,
> Shameem.
>
>
>
> > Date: Wed, 3 Feb 2010 03:45:41 -0800
> > Subject: [DotNetDevelopment] Re: Concatenate multiple records to string--
> > From: [email protected]
> > To: [email protected]
>
> >
> > 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..
> >
> > On Feb 2, 8:38 am, Benj Nunez <[email protected]> wrote:
> > > Best thing to do here is to use DTOs (Data Transfer Objects). Then use
> > > a collection (i.e. List <>).
> > > Once this is done, use StringBuilder. From there, you can insert
> > > commas in between fields defined
> > > from your DTOs through a loop (i.e. foreach).
> > >
> > > On Jan 28, 3:15 pm, Sruthi <[email protected]> wrote:
> > >
> > > > Hi..
> > >
> > > > i need to concatenate the gridview rows to a single string
> > > > if the gridview count is more than 100 then
> > > > i need to perform the concatenation as 100 comma seperated  and the
> > > > next has to be carried over to the next string
> > > > say if the count of gridview is 1000 then
> > > > i need to concatenate the string as
> > > > string1= 1to 100(Ex: a,b,c....) then
> > > > string2=101-200
> > > > string3= 201-300… and so on...
> > >
> > > > any idea on performing this...
> > >
> > > > Thanks in advance.....
>
> ------------------------------
> Hotmail: Trusted email with powerful SPAM protection. Sign up 
> now.<http://clk.atdmt.com/GBL/go/201469227/direct/01/>
>

Reply via email to