I can have an array empty but the xbrowse give me error when I try to show it
aErroriNum:={}
this test give me error on this row
oBrowse1:aCols[2]:cHeader := i18n("Riga")
why ?
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
aErroriNum:={}
this test give me error on this row
oBrowse1:aCols[2]:cHeader := i18n("Riga")
why ?
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 nilI 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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com