Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Form Inheritence

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

598 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