on 12-06-2006 5:18 PM
How do you combine methods in one UDF...
For example I want to convert a string to lower case and the replace characters...
I have done the following code:
return a.toLowerCase();
return a.replace('a', 'z');
Yet I do not get the result I want.... The string is converted to lower case but it does not replace the characters...
So please let me know how I combine methods in a UDF...
So step 1 would be toLoawerCase
step 2 would be a.replace
hi Alex,
you can only return one value
String b = a.toLowerCase();
return b.replace('a', 'z');
Regards,
michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you people... They both worked very successfully
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hI Alex,
try this code:
return a.toLowerCase().replace('a', 'z');
Hope this help
Francesco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.