Hi. Why running the DanielMaximiliano post script return next error "Grid: Invalid nColIndex"?
Ver. hmg 3.4.3 (stable 34 bits)
Code: Select all
#include "hmg.ch"
Function Main
Local aRows [23][3]
aRows [1] := {'Simpson' ,'Homer' ,'555-5555'}
aRows [2] := {'Mulder' ,'Fox' ,'324-6432'}
aRows [3] := {'Smart' ,'Max' ,'432-5892'}
aRows [4] := {'Grillo' ,'Pepe' ,'894-2332'}
aRows [5] := {'Kirk' ,'James' ,'346-9873'}
aRows [6] := {'Barriga' ,'Carlos' ,'394-9654'}
aRows [7] := {'Flanders' ,'Ned' ,'435-3211'}
aRows [8] := {'Smith' ,'John' ,'123-1234'}
aRows [9] := {'Pedemonti' ,'Flavio' ,'000-0000'}
aRows [10] := {'Gomez' ,'Juan' ,'583-4832'}
aRows [11] := {'Fernandez' ,'Raul' ,'321-4332'}
aRows [12] := {'Borges' ,'Javier' ,'326-9430'}
aRows [13] := {'Alvarez' ,'Alberto' ,'543-7898'}
aRows [14] := {'Gonzalez' ,'Ambo' ,'437-8473'}
aRows [15] := {'Batistuta' ,'Gol' ,'485-2843'}
aRows [16] := {'Vinazzi' ,'Amigo' ,'394-5983'}
aRows [17] := {'Pedemonti' ,'Flavio' ,'534-7984'}
aRows [18] := {'Samarbide' ,'Armando' ,'854-7873'}
aRows [19] := {'Pradon' ,'Alejandra' ,'???-????'}
aRows [20] := {'Reyes' ,'Monica' ,'432-5836'}
aRows [21] := {'Samarbide' ,'Armando' ,'854-7873'}
aRows [22] := {'Pradon' ,'Alejandra' ,'???-????'}
aRows [23] := {'Reyes' ,'Monica' ,'432-5836'}
DEFINE WINDOW Form_1 ;
AT 0,0 ;
WIDTH 630 ;
HEIGHT 480 ;
TITLE 'Hello World!' ;
MAIN ;
FONT 'Arial' ;
SIZE 9
DEFINE GRID Grid_1
ROW 40
COL 10
WIDTH 590
HEIGHT 330
HEADERS { 'Last', 'Name' ,'Tel' }
WIDTHS { 185 , 185 , 185 }
ITEMS aRows
VALUE 1
END GRID
Form_1.Grid_1.AddColumnEx ( Nil , "New Col" , 100, NIL, {'TEXTBOX','CHARACTER'})
Form_1.Grid_1.AddItemEx ( { 'hmg', 'JUAN','333-9999', "23" } , 3 ) // add items Row 3 of New Columm
END WINDOW
CENTER WINDOW Form_1
ACTIVATE WINDOW Form_1
Return
También en el Demo40 de grid me marca el mismo error.
Necesito trabajar con un grid dinámico, quitar y poner columnas dependiendo de un combobox.
Thank you.
Also in the Grid Demo40 I get the same error
I need to work with a dynamic grid, Remove and put columns depending on a combobox
Bets Regards: Antonio