Split string2

Hello!
I have cr = F-223_faafg
I need F-223
I write cr.Split("_")(0)

But error:
Option Strict On disallows implicit conversions from ‘String’ to ‘Char’.

cr.split("_"c)(0)

1 Like

@RPA3

write as cr.Split("_"c)(0)

Thanks