Board index » delphi » List index out of bounds(-1) when Rave Format field is blank

List index out of bounds(-1) when Rave Format field is blank


2007-04-20 05:21:20 PM
delphi126
Hello experts!
Recently I was using Rave to produce a report for my employer. I
chance upon this error message: "List index out of bounds(-1)". Here's
how to reproduce it:
1. In your Delphi code, make a call to Execute:
RvProject.Execute;
2. When the Output Options dialog appears, choose "File" as your
Report Destination.
3. Type in a filename (e.g. Test). I think you may or may not include
the file extension.
4. Now, intentionally leave the Format field blank (The part where you
choose *.ndr, *prn, etc.).
5. Click Ok
After clicking Ok, you get this error, BUT the file gets saved. I am
just wondering if there's a fix for this already. If there's none, can
anyone tell
me if there's a way to remove/hide this message?
--Benj
 
 

Re:List index out of bounds(-1) when Rave Format field is blank

I'm not sure why you would ever want to blank this field out. However, I
have now changed the format dropdown to a dropdownlist, which should prevent
this from happening. This will be in the next release. However, you do
have the option of overriding the SetupForm and providing one of your own.
See the tips and tricks for how to do this.
Eldon Lewis
Nevrona Designs
"Benj Nunez" <XXXX@XXXXX.COM>writes
Quote
Hello experts!

Recently I was using Rave to produce a report for my employer. I
chance upon this error message: "List index out of bounds(-1)". Here's
how to reproduce it:

1. In your Delphi code, make a call to Execute:

RvProject.Execute;

2. When the Output Options dialog appears, choose "File" as your
Report Destination.
3. Type in a filename (e.g. Test). I think you may or may not include
the file extension.
4. Now, intentionally leave the Format field blank (The part where you
choose *.ndr, *prn, etc.).
5. Click Ok

After clicking Ok, you get this error, BUT the file gets saved. I am
just wondering if there's a fix for this already. If there's none, can
anyone tell
me if there's a way to remove/hide this message?


--Benj