Solved

dynamic array in Delphi 6

Posted on 2002-04-28
7
286 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
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!

 
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

Technology Partners: 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
error 1.1 400 Bad request idhttp delphi 18 199
select query - oracle 16 101
Performance of SQL statement 37 137
I want to use librsync in my Delphi backup application. 3 69
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

713 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