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

x
?
Solved

dynamic array in Delphi 6

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

Andrew
0
Comment
Question by:andrewyu
[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
7 Comments
 
LVL 14

Accepted Solution

by:
DragonSlayer earned 100 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

610 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