Modify a column by keeping only the first four characters

Hello everyone,

I would like to modify a column by keeping only the first four characters.

My dataframe looks like ‘dt’ and my column ‘col1’

Thank you!

For Each Row in Datatable - dt

  • Assign CurrentRow(“col1”) = Left(CurrentRow(“col1”).ToString,4)

Perfect thank !

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