Solved

Arrays in Delphi 3

Posted on 1997-06-20
2
205 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

830 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