Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 292
  • Last Modified:

dynamic array in Delphi 6

How can I create a dynamic array of a user defined record ?

Andrew
0
andrewyu
Asked:
andrewyu
1 Solution
 
DragonSlayerCommented:
umm... try this?

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

var
  MyArray: array of MyRecord;

and in your code:

SetLength(MyArray, 100);
0
 
andrewyuAuthor Commented:
I tried it, but, I cannot use SetLength.

Andew
0
 
Lee_NoverCommented:
why can't you use SetLength ?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
ginsonicCommented:
Maybe you don't have in uses System unit . Or anothers units that use this one.
0
 
andrewyuAuthor Commented:
Thank you very much.

Problem is fixed.

Andrew
0
 
DragonSlayerCommented:
Oh, thank you very much means a grade C? :)
0
 
andrewyuAuthor Commented:
Actually, I got this answer in previous post. But, got some problem in setlength.

However, setlength is ok now.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now