Solved

dynamic array in Delphi 6

Posted on 2002-04-28
7
283 Views
Last Modified: 2010-04-04
How can I create a dynamic array of a user defined record ?

Andrew
0
Comment
Question by:andrewyu
7 Comments
 
LVL 14

Accepted Solution

by:
DragonSlayer earned 50 total points
ID: 6976239
umm... try this?

type
  MyRecord = record
    a, b, c: Integer;
  end;

var
  MyArray: array of MyRecord;

and in your code:

SetLength(MyArray, 100);
0
 

Author Comment

by:andrewyu
ID: 6976263
I tried it, but, I cannot use SetLength.

Andew
0
 
LVL 12

Expert Comment

by:Lee_Nover
ID: 6976271
why can't you use SetLength ?
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 9

Expert Comment

by:ginsonic
ID: 6976296
Maybe you don't have in uses System unit . Or anothers units that use this one.
0
 

Author Comment

by:andrewyu
ID: 6976306
Thank you very much.

Problem is fixed.

Andrew
0
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 6976335
Oh, thank you very much means a grade C? :)
0
 

Author Comment

by:andrewyu
ID: 6976350
Actually, I got this answer in previous post. But, got some problem in setlength.

However, setlength is ok now.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Intraweb submit form as a POST request 4 302
Delphi - replicating a form 8 72
Create a path if not exists 7 76
Delphi: barcode reading on android platform 1 26
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…
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

816 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

10 Experts available now in Live!

Get 1:1 Help Now