Click here to Skip to main content
15,886,795 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have datatable now i want to read value from datatable and in matching case replace with another value. Please give me hint.
Posted
Comments
Kenneth Haugland 14-Aug-12 1:05am    
Do you mean compare pdf text and database values?

1 solution

for check & replace value in datatable

VB
For i = 0 To dt.Rows.Count - 1
           If dt.Rows(i)("col1") = "abc" Then 'check
               dt.Rows(i)("col1") = "efg" 'Replace
           End If
       Next

Happy Coding!
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900