How to use split function in string?

in userinfo table their is one field called UserName. In this field the full name of all users are stored. Like Akshay, Bankar(Comp).

Now I want to write 1 display method and in that method I just want to display the first name “Akshay” only. How can I do this…?


You can use strSplit method from the Global class as following:




Hi Thomas,

Thankx for your reply.

Can you please elaborate this function.

I want to show that first name in display method.

the following link should help you: