Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Upgrading a VB 6 Classic program to VB.Net (VB 2010)

Ken01

Programmer
Aug 8, 2014
65
GB
Hello

Recently I converted a VB 6 program which contained public record structures using the VB 2010 upgrade option.

There were surprisingly few syntax errors which were easily resolved. The program does however use public record
structures for storing data in external random access files. String data types got converted to char in VB 2010 and
this then led to bad record length issues. I have other native VB 2010 programs which use 'string' as the data type and
work correctly. With the converted program changing from char to string led to syntax errors. Some, but NOT all
of these errors were resolved by adding a "tostring" method.

Has anyone any ideas ?
What really puzzles me is why this only seems to be an issue with converted programs and not freshly written ones ?
 

Part and Inventory Search

Sponsor

Back
Top