FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
Error al guardar valores en un Array de TRemotable.
Hola a todos. Necesito de su ayuda. Tengo la siguiente declaración:
y luego..
Mi problema es que al asignar valores al array me da un error de memoria: Result.InvoiceBody[0].Item_Descripcion := 'X'; Alguien me sabria decir que estoy haciendo mal. Desde ya muchas gracias. Matias Última edición por Casimiro Notevi fecha: 20-07-2012 a las 17:04:04. Razón: Poner etiquetas [DELPHI] ... [/DELPHI] |
#2
|
|||
|
|||
Podrías mostrar el código completo de como estás asignando los valores, así no se te puede dar comentario alguno.
Saludos |
#3
|
|||
|
|||
Egostar, gracias por tu respuesta. Adjunto el codigo completo.
Es la primera vez que utilizo TRemotable y creo que mi problema es que no inicializo Items (arrayofitem). Pero ya lo intenté y no se como hacerlo. Saludos y Gracias
Luego en el código de WSEPS30_Invoice....
Última edición por Casimiro Notevi fecha: 20-07-2012 a las 19:46:43. |
#4
|
|||
|
|||
Hola matiaslegnazzi
Intenta con esto
Saludos |
#5
|
|||
|
|||
Gracias Egostar. Había intentado eso pero recibo el siguiente error al compilar:
[Error] wsEPS30Impl.pas(80): Constant object cannot be passed as var parameter Saludos. |
#6
|
|||
|
|||
Ok, ¿y si cambias esto?
Lo hago de memoria, pero me parece que no necesitas hacer del Arreglo de Items una clase TRemotable, ya que está dentro de otra clase TRemotable, debe bastar con un record. Saludos |
#7
|
|||
|
|||
Hice la modificacion, pero sigue dando el mismo error al compilar.
Me parece que si lo declaro como Record en lugar de Tremotable pierdo la property Item_Description e Item_value. Agradezco tu ayuda. Por mi parte voy a investigar porque da ese error al inicializar el array. Saludos |
#8
|
|||
|
|||
No hay caso. Ya intente de mil formas y recibo el error de memoria, como si el array no estuviera inicializado. Tampoco puedo inicializarlo en la declaracion del array.
Saludos |
#9
|
|||
|
|||
SOLUCIONADO!!!!
Última edición por Casimiro Notevi fecha: 20-07-2012 a las 22:01:20. |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Array en class(TRemotable) | Miguel Galarza | OOP | 4 | 06-04-2010 22:44:05 |
pasar de un array de valores a bitmap | i.larranaga | C++ Builder | 3 | 20-04-2007 05:01:04 |
valores diferentes en array | anubis | Varios | 6 | 17-04-2007 09:47:39 |
Cómo asignar valores a una variable tipo Array | quinqui | OOP | 7 | 23-06-2006 15:59:17 |
|