Solved

Form Inheritence

Posted on 1997-05-20
3
211 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

696 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