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