
Mr. Nages I insert on my dialog all your command of xbincflt.prg
I have different array of fields and headers
I have error when I change the first combo
I not understood where is the error
I made
static aFlds,aHdrs
function Clientes()
oApp():oGrid := TXBrowse():New( oApp():oDlg )
oApp():oGrid:nTop := 16
oApp():oGrid:nLeft := nSplit+2
oApp():oGrid:nBottom := oApp():oDlg:nGridBottom
oApp():oGrid:nRight := oApp():oDlg:nGridRight
aBrowse := { { { || " "}, ' ', 15 },;
{ { || CL->CLCODICE}, i18n("Codice"), 50 },;
{ { || CL->CLNOME }, i18n("Ragione Sociale"), 90 },;
{ { || CL->CLINDIR }, i18n("Indirizzo"), 90 },;
{ { || CL->CLCAP }, i18n("Cap"), 45 },;
{ { || CL->CLCITTA }, i18n("Località"), 100 },;
{ { || CL->CLPROV }, i18n("Provincia"), 20 },;
{ { || CL->CLREGIONE }, i18n("Regione"), 80 },;
{ { || CL->CLNAZIONE }, i18n("Nazione"), 80 },;
{ { || CL->CLPARTIVA }, i18n("Partita Iva"), 60 } }
FOR i := 1 TO Len(aBrowse)
oCol := oApp():oGrid:AddCol()
oCol:bStrData := aBrowse[ i, 1 ]
oCol:cHeader := aBrowse[ i, 2 ]
oCol:nWidth := aBrowse[ i, 3 ]
NEXT
aHdrs :={}
aFlds :={}
aFlds := {CLCODICE,CLNOME,CLINDIR,CLCAP,CLCITTA,CLPROV,CLREGIONE,CLNAZIONE,CLPARTIVA}
aHdrs := { i18n("Codice") ,;
i18n("Ragione Sociale") ,;
i18n("Indirizzo") ,;
i18n("Cap") ,;
i18n("Località") ,;
i18n("Provincia") ,;
i18n("Regione") ,;
i18n("Nazione") ,;
i18n("Partita Iva") }
oApp():oGrid:lIncrFilter := .t.
oApp():oGrid:lSeekWild := ( nWild == 2 )
oApp():oGrid:cFilterFld := "CLCODICE"
oApp():oGrid:SetRDD()
oApp():oGrid:CreateFromCode()
@ 7.1, 410 COMBOBOX oApp:oGrid:cFilterFld ;
ITEMS aHdrs ;
ON CHANGE (oApp:oGrid:Seek( "" ), oApp:oGrid:SetFocus() ) ;
SIZE 100,400 PIXEL OF oApp():oTitle
// starting with / containing ...
@ 7.1, 570 COMBOBOX nWild ITEMS { "Voci che iniziano con..", "Voci che contengono...." } ;
ON CHANGE ( oApp:oGrid:lSeekWild := ( nWild == 2 ), ;
oApp:oGrid:Seek( If( oApp:oGrid:lSeekWild, oApp:oGrid:cSeek, "" ) ), ;
oApp:oGrid:SetFocus() ) ;
SIZE 120,400 PIXEL OF oApp():oTitle
@ 7.2,700 say oApp:oGrid:oSeek PROMPT oApp:oGrid:cSeek SIZE 200,20 PIXEL ;
OF oApp():oTitle COLOR CLR_BLACK,CLR_YELLOW PICTURE '@!'if select the second item ---> Ragione Sociale
this error
Application
===========
Path and name: C:\Work\Prg\Default\Invoice.Exe (32 bits)
Size: 4,465,664 bytes
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20140725)
FiveWin Version: FWHX 15.01
Windows version: 6.1, Build 7600
Time from start: 0 hours 0 mins 10 secs
Error occurred at: 09-06-2015, 18:30:07
Error description: Error BASE/1449 Errore sintattico: &
Args:
[ 1] = C Ragione Sociale
Stack Calls
===========
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:RDDINCRFILTER( 5175 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:RDDINCRSEEK( 5119 )
Called from: .\source\classes\XBROWSE.PRG => (b)TXBROWSE:SETRDD( 4147 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:SEEK( 6496 )
Called from: source\PClientes.prg => (b)CERCA_CLIENTE( 428 )
Called from: .\source\classes\COMBOBOX.PRG => TCOMBOBOX:CHANGE( 420 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1702 )
Called from: .\source\classes\COMBOBOX.PRG => TCOMBOBOX:HANDLEEVENT( 737 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3450 )
Called from: => SENDMESSAGE( 0 )
Called from: .\source\classes\WINDOW.PRG => TC5STBAR:COMMAND( 1213 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1733 )
Called from: Lib\C5Stbar\source\c5stbar.prg => TC5STBAR:HANDLEEVENT( 911 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3450 )
Called from: => WINRUN( 0 )
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 1152 )
Called from: source\Main.prg => TAPPLICATION:ACTIVATE( 397 )
Called from: source\Main.prg => MAIN( 58 )another sample
----if select the five item
{ { || CL->CLCITTA }, i18n("Località"), 100 },;
Application
===========
Path and name: C:\Work\Prg\Default\Invoice.Exe (32 bits)
Size: 4,470,272 bytes
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20140725)
FiveWin Version: FWHX 15.01
Windows version: 6.1, Build 7600
Time from start: 0 hours 0 mins 9 secs
Error occurred at: 09-06-2015, 18:21:23
Error description: Error BASE/1003 Variabile inesistente: LOCALITà
Stack Calls
===========
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:RDDINCRFILTER( 5175 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:RDDINCRSEEK( 5119 )
Called from: .\source\classes\XBROWSE.PRG => (b)TXBROWSE:SETRDD( 4147 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:SEEK( 6496 )
Called from: source\PClientes.prg => (b)CERCA_CLIENTE( 428 )
Called from: .\source\classes\COMBOBOX.PRG => TCOMBOBOX:CHANGE( 420 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1702 )
Called from: .\source\classes\COMBOBOX.PRG => TCOMBOBOX:HANDLEEVENT( 737 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3450 )
Called from: => SENDMESSAGE( 0 )
Called from: .\source\classes\WINDOW.PRG => TC5STBAR:COMMAND( 1213 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1733 )
Called from: Lib\C5Stbar\source\c5stbar.prg => TC5STBAR:HANDLEEVENT( 911 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3450 )
Called from: => WINRUN( 0 )
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 1152 )
Called from: source\Main.prg => TAPPLICATION:ACTIVATE( 397 )
Called from: source\Main.prg => MAIN( 58 )it make this error
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