troubleshooting Question

Record and pointers

Avatar of mieow
mieow asked on
Delphi
21 Comments1 Solution604 ViewsLast Modified:
I have a record with strings, integers and booleans.
I read the data into the record from several files and need to store them in the memory.

In my program I have an array [1..500] of record.
I don't know how many records are to be used for each time, so 500 here is just a guess. I could set it to 1000 or even 2000 just to be sure but I see it as a waste of memory.

I think the best here would be to use a pointer for the record. I have forgot most about using pointers so I need some help here.

I need to know how many reords are read and also access any of them by index.
I know you experts can help me

If you could give me a litle sample how to declare, allocate memory, read data into the record and access any of it.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 21 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 21 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros