Question

I have a legacy system I'm porting from VB 6 to C# and am at the stage where I am grabbing data from the old application's database which is in Access and porting it over to the new database in Sql Server.

Several fields in the access database are string types and contain the contents of a VB 6 PropertyBag. It's basically used like a dictionary in C# with key value pairs. There is the name of a property and then its value which is usually a number or maybe a string.

Anybody have any success in translating VB 6 PropertyBag data?

Thanks.

Était-ce utile?

La solution

Why not just use a VB6 program to read the old database and write it to the new database? Why bother trying to read the old database in C#? It sounds very difficult.

If you really must write the new database in C#, then write a VB6 COM DLL to read the old database and call it from the C#.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top