PC Review


Reply
Thread Tools Rate Thread

collection and limit

 
 
--== Alain ==--
Guest
Posts: n/a
 
      16th Dec 2006
Hi,

I have a collection object and it seems limited to 256 items.
How is it possible to increase this limit ?

thanks a lot,

Al.
 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      16th Dec 2006
> Hi,
>
> I have a collection object and it seems limited to 256 items.
> How is it possible to increase this limit ?



Sub test()
Dim i As Long
Dim col As Collection

Set col = New Collection
For i = 1 To 20000
col.Add i, CStr(i)
Next

MsgBox col("20000")

End Sub

Is there something special about your particular collection

Regards,
Peter T


 
Reply With Quote
 
--== Alain ==--
Guest
Posts: n/a
 
      17th Dec 2006
It's a simple collection with 21000 records...nothing special

Peter T wrote:
>> Hi,
>>
>> I have a collection object and it seems limited to 256 items.
>> How is it possible to increase this limit ?

>
>
> Sub test()
> Dim i As Long
> Dim col As Collection
>
> Set col = New Collection
> For i = 1 To 20000
> col.Add i, CStr(i)
> Next
>
> MsgBox col("20000")
>
> End Sub
>
> Is there something special about your particular collection
>
> Regards,
> Peter T
>
>

 
Reply With Quote
 
RichardSchollar
Guest
Posts: n/a
 
      17th Dec 2006
Alain

How are you creating your collection? Can you post the code you have?

Richard


--== Alain ==-- wrote:
> It's a simple collection with 21000 records...nothing special
>
> Peter T wrote:
> >> Hi,
> >>
> >> I have a collection object and it seems limited to 256 items.
> >> How is it possible to increase this limit ?

> >
> >
> > Sub test()
> > Dim i As Long
> > Dim col As Collection
> >
> > Set col = New Collection
> > For i = 1 To 20000
> > col.Add i, CStr(i)
> > Next
> >
> > MsgBox col("20000")
> >
> > End Sub
> >
> > Is there something special about your particular collection
> >
> > Regards,
> > Peter T
> >
> >


 
Reply With Quote
 
=?Utf-8?B?SkxHV2hpeg==?=
Guest
Posts: n/a
 
      17th Dec 2006
I am beginning to wonder if Alain is a real person or a virus.

"RichardSchollar" wrote:

> Alain
>
> How are you creating your collection? Can you post the code you have?
>
> Richard
>
>
> --== Alain ==-- wrote:
> > It's a simple collection with 21000 records...nothing special
> >
> > Peter T wrote:
> > >> Hi,
> > >>
> > >> I have a collection object and it seems limited to 256 items.
> > >> How is it possible to increase this limit ?
> > >
> > >
> > > Sub test()
> > > Dim i As Long
> > > Dim col As Collection
> > >
> > > Set col = New Collection
> > > For i = 1 To 20000
> > > col.Add i, CStr(i)
> > > Next
> > >
> > > MsgBox col("20000")
> > >
> > > End Sub
> > >
> > > Is there something special about your particular collection
> > >
> > > Regards,
> > > Peter T
> > >
> > >

>
>

 
Reply With Quote
 
--== Alain ==--
Guest
Posts: n/a
 
      18th Dec 2006
Sorry but i'm not a virus !


JLGWhiz wrote:
> I am beginning to wonder if Alain is a real person or a virus.
>
> "RichardSchollar" wrote:
>
>> Alain
>>
>> How are you creating your collection? Can you post the code you have?
>>
>> Richard
>>
>>
>> --== Alain ==-- wrote:
>>> It's a simple collection with 21000 records...nothing special
>>>
>>> Peter T wrote:
>>>>> Hi,
>>>>>
>>>>> I have a collection object and it seems limited to 256 items.
>>>>> How is it possible to increase this limit ?
>>>>
>>>> Sub test()
>>>> Dim i As Long
>>>> Dim col As Collection
>>>>
>>>> Set col = New Collection
>>>> For i = 1 To 20000
>>>> col.Add i, CStr(i)
>>>> Next
>>>>
>>>> MsgBox col("20000")
>>>>
>>>> End Sub
>>>>
>>>> Is there something special about your particular collection
>>>>
>>>> Regards,
>>>> Peter T
>>>>
>>>>

>>

 
Reply With Quote
 
jeff.j.griffith@gmail.com
Guest
Posts: n/a
 
      18th Dec 2006
It's not the collection that's limited, but the Watch window. I've
added well more than 256 items to collections, only to be tricked by
what displays in the watch window.


--== Alain ==-- wrote:
> Sorry but i'm not a virus !
>
>
> JLGWhiz wrote:
> > I am beginning to wonder if Alain is a real person or a virus.
> >
> > "RichardSchollar" wrote:
> >
> >> Alain
> >>
> >> How are you creating your collection? Can you post the code you have?
> >>
> >> Richard
> >>
> >>
> >> --== Alain ==-- wrote:
> >>> It's a simple collection with 21000 records...nothing special
> >>>
> >>> Peter T wrote:
> >>>>> Hi,
> >>>>>
> >>>>> I have a collection object and it seems limited to 256 items.
> >>>>> How is it possible to increase this limit ?
> >>>>
> >>>> Sub test()
> >>>> Dim i As Long
> >>>> Dim col As Collection
> >>>>
> >>>> Set col = New Collection
> >>>> For i = 1 To 20000
> >>>> col.Add i, CStr(i)
> >>>> Next
> >>>>
> >>>> MsgBox col("20000")
> >>>>
> >>>> End Sub
> >>>>
> >>>> Is there something special about your particular collection
> >>>>
> >>>> Regards,
> >>>> Peter T
> >>>>
> >>>>
> >>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Collection problems (create Collection object, add data to collection, bind collection to datagrid) Řyvind Isaksen Microsoft ASP .NET 1 18th May 2007 10:24 AM
Collection problems (create Collection object, add data to collection, bind collection to datagrid) Řyvind Isaksen Microsoft Dot NET 1 18th May 2007 10:24 AM
Can't get collection to save when using collection of custom class as property of control in VS 2005 J.Edwards Microsoft Dot NET Compact Framework 0 10th Jan 2006 04:44 AM
key/value collection that allows key string to be updated and retains collection item entry order dx Microsoft Dot NET Framework 2 25th Sep 2004 05:51 PM
Item Collection Editor doesn't preserve collection Andrés Giraldo Microsoft ASP .NET 2 25th Mar 2004 08:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:49 PM.