?
Solved

Arrays in Delphi 3

Posted on 1997-06-20
2
Medium Priority
?
228 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
ID: 1337348
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
ID: 1337349
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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 a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

864 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