on 01-06-2014 7:00 AM
Hi Shikha,
The string operation substing has three arguments.
1. String Value (in your case 'ab')
2. Start position (in your case '0')
3. Character Count (in your case '5')
The number of characters in a string is only two while trying to do substring upto 5 charcters starting from position zero, hence the error.
-Anand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shikha,
If I am not wrong which I can see from your error message ..you are using Substring function.
Can you just check start and count position and also check ..pass more character in the field and see whether you are getting similar error or not.
If I am not wrong you will not get any error when you will pass more character because it seems you are passing less character in this fuction.
Do check and share the details.
Regards,
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shikha,
As error says about String Index out of bound exception means you are using SubString function which require more character then you passing. so plz check the value you pass in substring function
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
26 | |
10 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.