aErroriNum:={}
this test give me error on this row
oBrowse1:aCols[2]:cHeader := i18n("Riga")
why ?
- Code: Select all Expand view
Function Controllo()
Local aErroriNum:={}
Local oDlgErrore
Local oBrowse1
DEFINE DIALOG oDlgErrore SIZE 600,400 TRANSPARENT;
TITLE "Configurazione Errata"
@ 30, 10 XBROWSE oBrowse1 OF oDlgErrore ;
SIZE 80,100 PIXEL NOBORDER
oBrowse1:SetArray(aErroriNum)
oBrowse1:aCols[1]:cHeader := i18n("Col")
oBrowse1:aCols[1]:nWidth := 50
oBrowse1:aCols[2]:cHeader := i18n("Riga")
oBrowse1:aCols[2]:nWidth := 50
WITH OBJECT oBrowse1
:lHscroll := .F.
:l2007 := .F.
:l2015 := .T.
:nStretchCol := STRETCHCOL_WIDEST
:lAllowRowSizing := .F.
:lAllowColSwapping := .F.
:lAllowColHiding := .F.
:lRecordSelector := .F.
:CreateFromCode()
END
ACTIVATE DIALOG oDlgErrore CENTERED
return nil
I understood the array aErroriNum can be of one column and my test is bad but How correct it ?
I tried also with aErrorNum:)array(,) but it make error
I tried also with
@ 30, 10 XBROWSE oBrowse1 OF oDlgErrore ;
COLUMNS 1, 2 ;
HEADERS "Col","Riga" ;
COLSIZES 40, 40 ;
ARRAY aErroriNum ;
SIZE 80,100 PIXEL NOBORDER
it not make error but insert on header A B