Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redefining array length 1

Status
Not open for further replies.

edgarasm

Programmer
Oct 29, 2002
26
BR


I need to know if redefining array length with SetLength is always a bad ideia or in some cases it would be more efficient than using dynamic struct with pointers etc...
 
As far as I know, SetLength is always a good idea and better than using a dynamic struc with pointers, etc.

Or you can use a TList and cast the elements (or a TStrings.Objects if you want a nice text index).

Why do you think that SetLength is bad?

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top