?
Solved

Form Inheritence

Posted on 1997-05-20
3
Medium Priority
?
214 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 40 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month8 days, 6 hours left to enroll

766 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