on ‎2010 May 05 10:47 AM
Hi,
I am getting one string like 123/456, I need to split the string at '/' and pass 123 to one target and 456 to another. Is there any function to achieve this requirement please let me know...
Basha
Request clarification before answering.
Hi,
Try this udf it works for your requirement..
String nm = "000012304/abc";
String search = "/";
String result = "";
String res = "";
int i;
i=nm.indexOf(search);
result = nm.substring(0,i);
res = nm.substring(i+1);
here nm is the input number you will be getting, search where "/" occurs and using substring read the first half and second half
regards,
Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.