Skip to Content
0
Former Member
Mar 05, 2009 at 01:36 PM

UDF for finding a string

52 Views

Hi all,

I'm required to do an UDF to a certain check on the value:

If the string "-" is found in the value i shouldn't modify the value

If the string is not found then i would need to remove any leading 0's of that number => 000000003134 = 3134

The only problem is that i'm not familiar with the java coding required for my UDF (the check for the string and the remove zeros or not)

Could someone help me with this with an example??

Thanks in advance!