Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting ADO source code to ADO.NET with Regular Expresion
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Converting ADO source code to ADO.NET with Regular Expresion
Miscellaneous
Thread ID:
00743910
Message ID:
00743910
Views:
63
Ok, i have a legacy project with ADO, this have in the source things like:

_Form.AdoObject.Fields("FieldName").Value
_Form.Container.AnyNumberOfContainers.AdoObject.Fields("FieldName").Value
AdoObject.Fields("FieldName").Value

And mixed in formulas:

Int(AdoObject.Fields("FieldName").Value*AdoObject.Fields("FieldName2").Value
))+AdoObject.Fields("FieldName3").Value

This must be converted to
AdoNETObject.Table[0].Rows(0).Item("FieldName")
_Form.Container.AnyNumberOfContainers.AdoNETObject.Table[0].Rows(0).Item("Fi
eldName")

I think that use a Regular expresion is the best way, becuase i need parse a
old function library and recompile dynamically in .NET. That its, the USER
write your own functions (so i don't know how are write this function), and
need be translate to .NET in the Fly for the system (not possible by now a
wide upgrade because new&old system must use the SAME functions and can run
in the same server, the new system is in ASP.NET and the Old is a COM+
Windows Server).

The work is almost done, except by the ADO fields trouble. I don't figure
how write a regular expression for this. I read a lot of documentation but
this look complex, at least for me.

Thanks for your time.

P.D. I check in www.regexlib.com but nothing found for now....
The Life is Beautiful!

Programmer in
Delphi, VS.NET
MCP
Reply
Map
View

Click here to load this message in the networking platform