on 03-13-2020 5:01 AM
Hi,
I am getting an error while extracting the report to excel sheet from crystal report at this formula,
cstr(Tonumber(split({Command.fwd_input},"/",6)[2]),6)
The error message is A subscript must be between 1 and size of the array
any idea what is wrong in this formula please.
The array index of your statement split({Command.fwd_input},"/",6)[2] is coming as 0 - due to non existence of the split char "/".
If it is a user entered input from command prompt, string the "/" if it does not exisit.
Regards,
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The error is due to cases where {Command.fwd_input} doesn't contain a "/"
So add logic to handle those cases.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.