 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Benj Nunez Guest
|
Posted: Fri Apr 20, 2007 2:21 pm Post subject: List index out of bounds(-1) when Rave Format field is blank |
|
|
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 |
|
| Back to top |
|
 |
Eldon Lewis Guest
|
Posted: Thu Apr 26, 2007 11:25 pm Post subject: Re: List index out of bounds(-1) when Rave Format field is b |
|
|
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" <benjnunez (AT) gmail (DOT) com> wrote in message
news:1177060880.840148.313610 (AT) q75g2000hsh (DOT) googlegroups.com...
| 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
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|