I have a great solution with a lot of strings that I need to replace. In Visual Studio, you can search and replace using regular expressions.
I want to replace lines like:
rst.Fields("CustomerName").Value
rst.Fields("Address").Value
rst.Fields("Invoice").Value
To:
row("CustomerName").ToString()
row("Address").ToString()
row("Invoice").ToString()
Thus, the dynamic text part is preserved, which can change.
Is this possible and how?
Update, solution:
Search: rst.Fields {(. *)}.
Replace Value : rst \ 1.ToString ()
Thanks JaredPar!
source
share