Solved

Arrays in Delphi 3

Posted on 1997-06-20
2
193 Views
Last Modified: 2010-04-04
I'm trying to run a program that worked fine in Delphi 2 in Delphi 3.
It gives me the error "Array type required" on this line
     Changed[i] := False;
Changed is defined as follows:
     Changed: array[1..8] of boolean;

What is the problem here?
0
Comment
Question by:Evil
2 Comments
 
LVL 2

Accepted Solution

by:
icampbe1 earned 50 total points
Comment Utility
Some problems are evident if you step back from the trees a bit.  
Changed[i] := FALSE;  isn't very confusing.  You don't say what symbol the compiler was complaining about.  However.....

Look at your code carefully.  Is it possible that something else is within scope of the statement.  Are you in a method of an object where 'Changed' is a field or property?  Are you within a WITH xxx DO clause?

If you want to send me a little piece of the code, I'll look at it more closely (I know thats hard to do sometimes).  E_Mail:  iancamp@interlog.com

I'll check this later today.

Cheers,
Ian C.

0
 

Author Comment

by:Evil
Comment Utility
It is within no WITH-DO statement.
As I said before it works with Delphi 2, so it must be something that was changed.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 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

11 Experts available now in Live!

Get 1:1 Help Now