VB.Windows compiler error on BC30311


variable in legacy works fine
{in_EmailTo}
but in Windows it shows errors
Complier error encountered processing expressing
error BC30311: value of type string() cannot be converted to String

@YangYang

as per screenshot strEmailTo is of type string and on right sise you are passing array of values that is a stringArray which is wrong

either remove brackets on right or change strEmailTo to string Array

cheers

Hi @YangYang

As you already created a variable of string type called in_EmailTo
In Assign activity just give as (ctrl+k) strEmailTo=in_EmailTo

No need of giving them in the flower braces


image

Hope it helps :slight_smile:
@YangYang

Hi below is the full screen
condition for if there is only one email address and there is an array of email address
Uploading: image.png…

@YangYang

you need not do the if condition at all…only the first assign should suffice…if there is no semi colon in string then only array with one value will be created automatically

Please try the same

cheers

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