cancel
Showing results for 
Search instead for 
Did you mean: 

Lower case to upper case

udayabhaskar
Explorer
0 Kudos

Hi,

I have a requirement where data will be sent as "inr" and it needs to be converted to "INR". However, sometimes the same filed might contain other characters like "%".

I know that we can use the Text Function "toUpperCase", however will there be any error when different characters come.

If so, is there any alternative way to convert from lower cases to upper cases and avoid getting an error.

Thanks

Udaya

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member186851
Active Contributor
0 Kudos

Hello Udaya,

No error will come if you touppercase.see the below example.

vinaymittal
Contributor
0 Kudos

No Exception will Come for %%^$^%$^%$ etc

There wont be any error if different characters come you can also use the node function for it or String.toUpperCase() is fine.

the special characters will apeear in the final string unchanged

ffff%rrr

output

FFFF%RRR

Harish
Active Contributor
0 Kudos

Hi Udaya,

you need to achieve this via UDFD. Use the function change to upper case and catch the exception in case of other char comes.

If you are sure that only % will come then you can use the replace string to replace it with blank and use the standard function.

changeCase.toUpperCase( );