on 04-21-2010 1:10 PM
Hi all,
could you provide me the UDF code for length check and special character check.
thanks in advance,
AVR
Hi,
if you want to find the length of a string use method length
googling could have result the below...
http://www.javacoffeebreak.com/faq/faq0056.html
and for special characters you can use...equals method to compare...
like for(int i =0; i < string.length();i++)
{
if (string<i>.equals ("special char"))
{
do needed thing
}
}
i have provided the direction...
HTH
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
solved my problem.
Thanks,
AVR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi AVR,
Lets say you are defining var1 as argument of udf then you can write following code to check for length
var1.length();
For checking special character can you explain what type of special character you want to check ?
Regards,
Amit
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 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.