GRID - Asignacion de Array

HMG en Español

Moderator: Rathinagiri

Post Reply
User avatar
SALINETAS24
Posts: 415
Joined: Tue Feb 27, 2018 3:06 am
DBs Used: DBF
Has thanked: 31 times
Been thanked: 44 times

GRID - Asignacion de Array

Post 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.
Como dijo el gran pensador Hommer Simpson..., - En este mundo solo hay 3 tipos de personas, los que saben contar y los que no. :shock:

User avatar
gfilatov
Posts: 741
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Has thanked: 27 times
Been thanked: 349 times
Contact:

Post 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 )
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein

User avatar
bpd2000
Posts: 1143
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 241 times
Been thanked: 139 times

Post 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]
Attachments
SetArray.zip
(2.92 MiB) Downloaded 58 times
BPD
Convert Dream into Reality through HMG

Post Reply