Solved

Arrays in Delphi 3

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Performance of SQL statement 37 143
can i put an image from resource into image tag ? 6 38
Get weeknumber and year from date 4 55
Firemonkey Queue list 1 49
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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 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