cancel
Showing results for 
Search instead for 
Did you mean: 

UDF Code

Former Member
0 Kudos

Hi all,

could you provide me the UDF code for length check and special character check.

thanks in advance,

AVR

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi All,

solved my problem.

Thanks,

AVR

Former Member
0 Kudos

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