For each row of a datatable

here is the code:

image

Hi,
I think that what you want is rather:
"C:\Users\...\".Replace(Path.GetFileName("C:\Users\...") + row("Referenz").ToString))
→ don’t forget the last parenthesis and to exchange the “.” into “+” between your path and the row()

1 Like

It you want to replace text (folder) with value in row cell “Referenz” it should be:

String.Replace(“string”,row(“Referenz”).toString)

in () there should be comma, beetwen two strings.

2 Likes

You’re definitely right, missed it :joy:

1 Like