Option Strict On disallows implicit conversions from String to Char

I cant Split the text

PONum = output of excel ( selected cell )

ex. I Got “55555-11/7777777888/99”

and finally I want result = 55555-

so I assign PONumber = PoNumber.Split(“-”)(0).ToString

and it Show Option Strict On disallows implicit conversions from String to Char

Hi @Suniagoz

Could you please try the following expression once?

PONumber = PoNumber.Split("-"c)(0).ToString()

Hope this helps,
Best Regards.

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