cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Error in text function...

Former Member
0 Kudos

Hi All,

I am using text function and I am getting below error when I am executing it.I am not sure why it is giving error when it is successfully complied.

Thanks,

Shikha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks Anand for clarifying my mistake and solving my issue.

Thanks,

Shikha

Answers (2)

Answers (2)

Former Member
0 Kudos


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

Former Member
0 Kudos

Hi Abhi,

Thanks.I was  making mistake while passing  character in substring fuction.

Thanks,

Shikha

gagandeep_batra
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Gagandeep,

Thanks it is working fine now.

Thanks,

Shikha