GRID - Asignacion de Array

HMG en Español

Moderator: Rathinagiri

Post Reply
User avatar
SALINETAS24
Posts: 365
Joined: Tue Feb 27, 2018 3:06 am
DBs Used: DBF
Has thanked: 30 times
Been thanked: 24 times

GRID - Asignacion de Array

Post by SALINETAS24 » Sun Dec 01, 2019 6:37 pm

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.

User avatar
gfilatov
Posts: 672
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Has thanked: 24 times
Been thanked: 237 times
Contact:

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

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

User avatar
bpd2000
Posts: 1104
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 203 times
Been thanked: 109 times

Post by bpd2000 » Wed Dec 04, 2019 11:33 am

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 39 times
BPD
Convert Dream into Reality through HMG

Post Reply