10tec igrid ocx

pasdavfr

New Member
Hi all,
i'am trying to get the selected cells in my igrid like this
( the ocx is igrid300_10tec.ocx ) :

DEFINE VARIABLE cpt AS INTEGER NO-UNDO.
DEFINE VARIABLE hArray AS RAW NO-UNDO.


DEFINE VARIABLE iMinRow AS INTEGER NO-UNDO.
DEFINE VARIABLE iMaxRow AS INTEGER NO-UNDO.
DEFINE VARIABLE iMinCol AS INTEGER NO-UNDO.
DEFINE VARIABLE iMaxCol AS INTEGER NO-UNDO.



cpt = ctltable:SelItems:COUNT.

/* The variable cpt is always correct */
/* but i always get an error on the following code */
/* WHY ? */

hArray = ctltable:SelItems:getArray( INPUT-OUTPUT iMinRow,
INPUT-OUTPUT iMaxRow,
INPUT-OUTPUT iMinCol,
INPUT-OUTPUT iMaxCol).
 
Top