How to check whether string conatins ","

Hi
String value=“Delhi Metro, new Delhi, India”
how to check whether value conatins “,”

Thanks in advance

Hi @KarthikBallary

Use str.tostring.substring(15)

Thanks
Ashwin.S

you can check with this buddy
in a if condition
Value.ToString.Contains(", ")

Cheers @KarthikBallary

Hi @KarthikBallary,

Use the YourStringName.Contains(",")

This will return a Boolean value like True or False

If it will return True, then the string contains Comma (,).

TanQ,
Michael Udhaya

again issue araised
check this

What kind of exception is this?

You you share the Screenshot?

what about this topic buddy did this get resolved first…?
lets take one step at a time
Cheers @KarthikBallary

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