S
Sean Kirkpatrick
As part of my ongoing effort to provide a set of .Net wrappers for DAO,
I'm writing a simple parser in VB.Net to search collection of VB6 source
files to add explicit qualifiers to existing variables
existing: dim DB as Database
...
DB(0)
new: DB.Tabledefs(0)
For the most part it's working, except that I've discovered that the
original authors of the VB6 code (my boss and the guy that I replaced)
have embedded upper 128 ASCII characters in the VB6 files, i.e., the
copyright symbol, etc. Most of them are included as part of a comment
somewhere, and so if I trash it it's not a big deal. However, there are
a couple that are actually embedded in a string literal as part of the
code - can't trash them.
I've mucked around with some of the various IO namespace file classes to
see if I could easily figure out how to handle this, but while I play, I
figured I'd ask if anyone else has encountered a similar problem and
come up with a solution that I could leverage? Google isn't helpful so far.
Thanks!
Sean
I'm writing a simple parser in VB.Net to search collection of VB6 source
files to add explicit qualifiers to existing variables
existing: dim DB as Database
...
DB(0)
new: DB.Tabledefs(0)
For the most part it's working, except that I've discovered that the
original authors of the VB6 code (my boss and the guy that I replaced)
have embedded upper 128 ASCII characters in the VB6 files, i.e., the
copyright symbol, etc. Most of them are included as part of a comment
somewhere, and so if I trash it it's not a big deal. However, there are
a couple that are actually embedded in a string literal as part of the
code - can't trash them.
I've mucked around with some of the various IO namespace file classes to
see if I could easily figure out how to handle this, but while I play, I
figured I'd ask if anyone else has encountered a similar problem and
come up with a solution that I could leverage? Google isn't helpful so far.
Thanks!
Sean