Many time while designing a ccx script i came across a common requirement that is checking the length of the number of character in a variable .
Here i am defining a method that can be used to count the number of character in a string.
For this define two variable , One is of type string and other is of type interger
Type integer variable (intExtnNo)
Type string variable (strExtno)
The use the below statement to count the number of character of the string variable
intExtnNo= strExtno .length()
The function strExtno .length() will calculate the number of character and return a integer value.
Here i am defining a method that can be used to count the number of character in a string.
For this define two variable , One is of type string and other is of type interger
Type integer variable (intExtnNo)
Type string variable (strExtno)
The use the below statement to count the number of character of the string variable
intExtnNo= strExtno .length()
The function strExtno .length() will calculate the number of character and return a integer value.
No comments:
Post a Comment