Remove particular string from a datatable column

Hi ,

i hava datatable from which i need to remove 04 value from a particular column how i can achieve it.
Please find the screenshot of the column from which i need to remove 04

Hi @vishal_nachankar

try using the below activity in for each row in excel

image

Regards

Hi @vishal_nachankar

Try this

- Assign -> CurrentRow("Name")=CurrentRow("Column").ToString.Replace("04","")

1 Like

Hi,
Take for each row in datatable
take if condition
Currentrow(“YourColumn”).ToString.Contains(“04”)

take assign activity and use replace function to replace the value with empty.

Thank you

Hi @vishal_nachankar

  1. Read the DataTable as “dt”
  2. For each row in “dt”
  3. row(“Col_Name”).ToString.Replace(“04”,“”)

implemented using substring from 2

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.