Switch activities inside For Each error

Hi,
I’m stack with an error with Switch the expression “item.Substring(0,2).ToLower” where “item” comes from parent For Each activity. The error in the expression is: “Option Strict On disallows late binding”
I take the exercice from Practice 3 of Variable, Data Types, Control Flow submodule of Introduction to the RPA Developer Course, of RAP Foundation training (UiPath Academy). I take the solution and I implement the same in other project, I don’t understand it is not working.

Thanks,
Ricard.

Hi,

Can you try to set “String” at TypeArgument property in For Each activity?

Regards,

Hi,
Now it works!
Thank you!

1 Like