How to get string before dot(.)

i want to get text before the dot(.) in the below string


can any one help me on this

@Tamilarasanaccet using Sub-string you can achieve this get the entire length of the string(“tedsad.sfs”) then get the index of char(’.’) from you string then Substring(index of char, length of string)

1 Like

Hi @Tamilarasanaccet

Use indexOf to get the index and use the substring to get the value.

Hope this might be helpful to you.

cheers :smiley:

Happy learning


varStr = “tedsad.sfs”

Try this: varStr.Split("."c)(0)


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