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

x
?
Solved

Arrays in Delphi 3

Posted on 1997-06-20
2
Medium Priority
?
225 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
[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 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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 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

636 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