Page 1 of 1

GRID - Asignacion de Array

Posted: Sun Dec 01, 2019 6:37 pm
by SALINETAS24
Hola a todos.
Seria posible asignar a un GRID ya definido un nuevo array, con la misma distribucion pero con distintos valores sin la necesidad de pasar por cada uno de los registros...
Asignacion como esto....

Code: Select all

Form_1.Grid_1.Item := aRows1  
en lugar de esto

Code: Select all

FOR i=1 TO len aRows1
   Win_MaAr.Browse_1.Item (i):=aRows1(i)
NEXT 
Lo he probado y no funciona, por si alguien se le ocurre algo.
Gracias y vamos con la cervecita.

Re: GRID - Asignacion de Array

Posted: Sun Dec 01, 2019 8:18 pm
by gfilatov
Hi,

Thanks for your request.

It is possible in the MiniGUI Extended Edition with the following statement:
Form_1.Grid_1.SetArray( aRows )
OR
DoMethod ( Form, Grid, 'SetArray', aRows )

Re: GRID - Asignacion de Array

Posted: Wed Dec 04, 2019 11:33 am
by bpd2000
gfilatov wrote: Sun Dec 01, 2019 8:18 pm Hi,
Thanks for your request.
It is possible in the MiniGUI Extended Edition with the following statement:
Form_1.Grid_1.SetArray( aRows )
OR
DoMethod ( Form, Grid, 'SetArray', aRows )
Sample code to port SetArray for HMG for Grid and Listbox Control [but not able to adopt for Combo]