Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Highlighted
RobRobeyns
Level I

Cannot subscript Display Box error

I have a custom script, but am seeing an error that says “Cannot subscript Display Box in access or evaluation of Report(dis)[Outline Box(6)]".

 

Is there anyone who can help?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Cannot subscript Display Box error

This error often happens if you are trying to reference an Outline Box (or some other type of box) in a report that doesn't exist.  It could be that in your script, you create and close a report multiple times, and for whatever reason in one of the reports that Outline Box isn't there, maybe because it doesn't apply to that particular set of data.  The easiest way to bypass this and allow your script to keep running is to simply add a Try() function around that line of code.  Therefore, do a search for the line where "Report(dis)[Outline Box(6)]" appears in your script, and put the entire line inside the try function.  Please let me know if this is clear and if it is a good solution for you.  

View solution in original post

2 REPLIES 2
Highlighted

Re: Cannot subscript Display Box error

This error often happens if you are trying to reference an Outline Box (or some other type of box) in a report that doesn't exist.  It could be that in your script, you create and close a report multiple times, and for whatever reason in one of the reports that Outline Box isn't there, maybe because it doesn't apply to that particular set of data.  The easiest way to bypass this and allow your script to keep running is to simply add a Try() function around that line of code.  Therefore, do a search for the line where "Report(dis)[Outline Box(6)]" appears in your script, and put the entire line inside the try function.  Please let me know if this is clear and if it is a good solution for you.  

View solution in original post

Highlighted
RobRobeyns
Level I

Re: Cannot subscript Display Box error

Thanks Hadley!
That does the trick!
Article Labels

    There are no labels assigned to this post.