How to insert an entry at first position of a Scripting.Dictionary ?

  • Thread starter Thread starter Thomas Lebrecht
  • Start date Start date
T

Thomas Lebrecht

When I create a Scripting.Dictionary with a command like

Set objLines = CreateObject("Scripting.Dictionary")

I can later add entries at the end with a command

objLines.Add strLine, True

But what if I want to insert them at the first position (and shift the existing lines
one position to the end).

A similar question applies to ArrayLists:

Set arrList = CreateObject("System.Collections.ArrayList")

How can I achieve an insert at the first position for this Object?

Thomas
 
Thomas,

I think that everybody thinks: Why is Thomas using a scripting directory and
codes like it is VB6 or VBA?"

Can you describe your problem so that you can get an answer in a truly
managed code way?

Cor
 
Back
Top