Solved

Form Inheritence

Posted on 1997-05-20
3
203 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

759 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now