You need to sign in to do that
Don't have an account?
Devaki Nandan Swami
how to get size of any string variable ?
I am new to SFDC , I want to get the size of string variable into my apex code . How can i do this?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
but on visual force page you can not use method ,so you need to use assosiated poperty "Lenght" inplace of length() method.
All Answers
You can use length function in apex after the srting variable to get the size .
String str1 = "Amit Kumar";
System.debug('str1 length'+str1.length());
You can use the length() method on any string, provided it's not null.
Hope that helps,
Clint
Can you please tell me how can i use the same on visualforce page?
but on visual force page you can not use method ,so you need to use assosiated poperty "Lenght" inplace of length() method.