473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Using the DictionaryBase

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
0 929

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Nick | last post by:
I am writing an application that uses a custom class which inherits DictionaryBase so that I can add items with an associated key. When I try to serialize the object though, I get the following...
4
by: Michael Maercker | last post by:
hi! i'm wondering what the differences are between hashtables und dictionarybases; can both of them store several different types of objects, each accessible by a string key? currently i'm using a...
3
by: marc | last post by:
I want to create a strongly typed collection and use DictionaryBase I add a number of objects but when i loop through the list the data is ordered in a strange maner. How is this possible? Can...
1
by: Masa Ito | last post by:
I am binding objects that inherit from DictionaryBase (Sortedlist and arraylist). I need to access the properties of these DictionaryEntry objects, but I cannot seem to access them by Key & Value,...
1
by: Dan Holmes | last post by:
Given the Class named KeyValue is the declaration for the Dictionary version correct? I can't get the IDE to like it. This is VS2005 beta 2. I think i am doing something wrong but i don't see...
0
by: Andrew E Chapman | last post by:
I have a bug that is driving me crazy. I call the remove method on a class inheriting from DictionaryBase and the Dictionary object seems to scramble the inner hashtable, replacing one of the...
4
by: Vivek Sharma | last post by:
Hi, Does anyone know a good example that demonstrates the working of CollectionsBase and DictionaryBase in vs 2005? THanks Vivek
1
by: Radu | last post by:
Hi, I have VS.NET 2002 and I'm reading about ReadOnlyCollectionBase, Collection, and DictionaryBase. In the following reference regarding VB2005, I can't find them: ...
1
by: parez | last post by:
Hi all, I want to use DictionaryBase as base class. The search performace matters lot. I have used a hashtable in a similar situation. This class DictionaryBase has a innerhash table so i...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.