Hi, I have a string called - “Name1,Dish1;Name2,Dish2;Name3,Dish3”.
First I created an array of strings by splitting this in “;” (Semicolon). So it’ll be {“Name1,Dish1”, “Name2,Dish2”, “Name3,Dish3”}.
Now, I’m looping through this and trying to split the first string in the array i.e. Name1,Dish1. But the split function is giving me an error when I try to Loop the Array(i.e. {“Name1,Dish1”, “Name2,Dish2”, “Name3,Dish3”}) as For Each: Specified cast is not valid