FTP | CCD | Buscar | Trucos | Trabajo | Foros |
#1
|
|||
|
|||
Matrices dinámicas
La Guía del Lenguaje Object Pascal de Borland para Delphi 5 dice acerca de las matrices dinámicas (no obstante estoy trabajando con Delphi 7):
"Para crear una matriz en memoria, es necesario llamar a SetLength. ...Mi pregunta es si en el caso de llamar a SetLength para una matriz que ya tuviera asigana memoria, no libera primero la memoria asignada. Es decir, el siguiente código -que funciona- ¿es correcto?:
o bien debería ser así:
__________________
Sonríe. Mañana puede ser peor. |
#2
|
|||
|
|||
De la ayuda de Delphi, buscando SetLength:
Cita:
Bye! |
#3
|
|||
|
|||
Aunque tarde, gracias por la respuesta.
__________________
Sonríe. Mañana puede ser peor. |
Herramientas | Buscar en Tema |
Desplegado | |
|
|
|