Closed
startsWithIgnoreCase function in pega 8
Hi,
as we don't have startsWithIgnoreCase function in pega 8 it is throwing an error...
do we have any alternate function pls suggest ?
Thanks,
Maregowd
This content is closed to future replies and is no longer being maintained or updated.
Links may no longer function. If you have a similar request, please write a new post.
Hi,
as we don't have startsWithIgnoreCase function in pega 8 it is throwing an error...
do we have any alternate function pls suggest ?
Thanks,
Maregowd
Hi
You can create your own function with below code:
-----------------------------------------------
if (str2==null)
return true;
if (str1==null || str1.length() < str2.length() )
return false;
return str1.toUpperCase().startsWith(str2.toUpperCase());
----------------------------------------
Regards
Bhavya
Question Solved
Question
Question Solved
Question
Question
Question Solved
Discussion
Question Solved
Discussion
Question
Pega Collaboration Center has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.