Solved

Form Inheritence

Posted on 1997-05-20
3
207 Views
Last Modified: 2010-04-04
I have inherited a form that has a page control with several bit buttons on each page.  Each time the parent form is changed to move buttons from one page to another, I get an error when I try to open my inherited form that says "List index out of bounds".  I've seen this error before using list boxes, but there aren't any list boxes on either of the forms in this case.  After I "ok" the error, the pascal unit opens, but the form is not loaded.  I thought I would be able to figure out the problem if I could view the form as text, but I have no way of opening it in a readable format.  Normally when controls are just moved around on the same page in the parent form page control, my inherited form adjusts fine the next time I open it.
0
Comment
Question by:kniffen
  • 2
3 Comments
 

Author Comment

by:kniffen
ID: 1336497
Edited text of question
0
 
LVL 1

Accepted Solution

by:
sleach earned 20 total points
ID: 1336498
This error can also be generated by trying to access a TStringList or TStrings object.  Check the code for any "List" object.

The error occurs when you access an item of the list that does not exist.





0
 

Author Comment

by:kniffen
ID: 1336499
None of the forms or controls involved use TStringList or TStrings objects.  The only controls involved are TBitBtn, TPageControl and TEdit.  I have scoured all of the related form and control pascal units.  Someone else here wondered if at a lower level, like internal Delphi control programming, that they may be storing the names of the pages in the page control in some kind of list and when I move buttons from one page to another, Delphi gets confused and can't resolve the change.  Thanks anyway.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Simple Delphi Question 9 105
Delphi: Connect to running MS Outlook 4 165
IP without any Dots 1 59
Get weeknumber and year from date 4 31
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question