I have a simple collection which I'm storing many strings to represent file paths & names.
I add each string to the collect with no problem, until I try and add the 257th item. Then nothing ... no error ... no warning ... but the collect count is still 256 with out the new item added or replacing other itmes in the collection. Is there a limit the number of items in a collection?
Example of code:
Dim colFiles As Collection 'A collection to hold file
'Instanciate the two collections for use.
Set colFiles = New Collection
Do
....
...more code
'Add this file to the top of the collection of files.
colFiles.Add filestring
Loop
I add each string to the collect with no problem, until I try and add the 257th item. Then nothing ... no error ... no warning ... but the collect count is still 256 with out the new item added or replacing other itmes in the collection. Is there a limit the number of items in a collection?
Example of code:
Dim colFiles As Collection 'A collection to hold file
'Instanciate the two collections for use.
Set colFiles = New Collection
Do
....
...more code
'Add this file to the top of the collection of files.
colFiles.Add filestring
Loop