- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI have a dynamic array of records. I want to stick an element into the array, not necessarily at the beginning or end. What is the BEST way to do this? I am just trying out dynamic arrays and can't find much in the Delphi 4 help about functions that operate on dynamic arrays (strings, on the other hand, seem to have plenty of manipulation functions).
I could write a routine that extends the array and then copies elements one by one up the list and then overwrites the one at the insertion point but there MUST be a better way such as:
1) an INSERT function that I can't find
2) a '+' operator or CONCAT function so I can COPY a chunk of the array, delete that chunk, add the element and CONCAT the copied chunk
3) a MOVE function (a la System.Move) or something
This question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership