I came back from a situation that temporarily took me away from the computer, I am sitting but with one leg stretched out on a chair, I hope to return to normal soon
a little question
on a dialog at init I insert an aData array into an XBROWSE
the user can change something (date range, number, type of object) while entering the data in the dialog, so if there is a change I have to delete everything in oBrowse: aArrayData [/ b]
first, however, I'm going to search the archive to see if the article is free or not
if it is free I can add a new record, taking the new data entered by the user, I have to create a new record.
When I create this record I put it in an array [b] aItems [/ b] and then I have to save it in the xbrowse
the problem is that initially before inserting the new record [b]I have to delete the contents of oBrowse:aArrayData
whether the search is successful and whether it is negative
I tried with
aSize( oBrowse:aArrayData, 1 ) or aSize( oBrowse:aArrayData, 0 ) but not run
I tried with
aData:={}
for n := 1 to len( aData )
aadd( oBrowse:aArrayData,aData[n])
next
but not run
How I can resolve ?
please a solution
a little question
on a dialog at init I insert an aData array into an XBROWSE
@ 60, 02 XBROWSE oBrowse OF oFolder:aDialogs[1] ;
COLUMNS 1,2,3,4,5,6,7,8,9,10,11;
HEADERS "Ico","Tipo","Servizio","Q.tà","Costo","Tot p q.tà","Dal","al","Giorni","Sconto","Totale" ;
PICTURES nil, nil,"@!","9999","€ 999,999.99","€ 999,999.99", "dd-mmmm-yyyy","dd-mmmm-yyyy","999","€ 999,999.99","€ 999,999.99" ;
COLSIZES 55, 25,130,50,90,90,140,140,50,90,120 ;
ARRAY aData ;
SIZE 100,80 PIXEL NOBORDERthe user can change something (date range, number, type of object) while entering the data in the dialog, so if there is a change I have to delete everything in oBrowse: aArrayData [/ b]
first, however, I'm going to search the archive to see if the article is free or not
if it is free I can add a new record, taking the new data entered by the user, I have to create a new record.
When I create this record I put it in an array [b] aItems [/ b] and then I have to save it in the xbrowse
aItems:=AddFirstRecord(1,cDescElemento,ncella,;
dFirst,dLast,cSettore,nImage, ;
lStagioneIntera,nInvoice)
for n := 1 to len( aItems ) // is allways 1
aadd( oBrowse:aArrayData,aItems[n])
nextthe problem is that initially before inserting the new record [b]I have to delete the contents of oBrowse:aArrayData
whether the search is successful and whether it is negative
I tried with
aSize( oBrowse:aArrayData, 1 ) or aSize( oBrowse:aArrayData, 0 ) but not run
I tried with
aData:={}
for n := 1 to len( aData )
aadd( oBrowse:aArrayData,aData[n])
next
but not run
How I can resolve ?
please a solution
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

