By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,934 Members | 1,528 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,934 IT Pros & Developers. It's quick & easy.

Using the DictionaryBase

P: n/a
I've got some code that i found on the net that helps build a flat file
structure.

It uses an underlying DictionaryBase class, but unfortunately it seems to
have a bug you cannot return the flatfilecolumn based upon the index value,
Is it possible to find the key name at an index position?

' return an instance of a single FlatFileColumn object given its 0-based
index -

Default Public Property Item(ByVal index As Integer) As FlatFileColumn

Get

Return CType(Me.Dictionary(index), FlatFileColumn)

End Get

Set(ByVal Value As FlatFileColumn)

Me.Dictionary(index) = Value

End Set

End Property

' return an instance of a single FlatFileColumn object given the column name

Default Public Property Item(ByVal key As String) As FlatFileColumn

Get

Return CType(Me.Dictionary(key), FlatFileColumn)

End Get

Set(ByVal Value As FlatFileColumn)

Me.Dictionary(key) = Value

End Set

End Property
Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.