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

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
 
C

Cor Ligthert

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top