Switch Case error - Argument 'Expression': (2) :error BC30512: Option Strict On disallows implicit conversions from string to integer

Hi

I am trying to write a switch case inside a foreach loop. I am trying to loop through errorcode array and based on the first two characters of the string my switch case should proceed. But I am getting the error “Argument ‘Expression’: (2) :error BC30512: Option Strict On disallows implicit conversions from string to integer”

Can someone help on this.

@Pradeep_Vattekat
welcome to the forum

just check if the typeargument from the for each acitvity / switch activity is set to string or change it

@Pradeep_Vattekat
click the switch activity

on the properties panel, change int32 to string

1 Like

Thank you, I had missed changing type on switch.

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