Search found 241 matches: narrayat

Return to advanced search

Problem with oBrowse:aDeleted

To delete a record on Array I use this function del_row( oBrowse ) if ! Empty( oBrowse:aArrayData ) ADel( oBrowse:aArrayData, oBrowse:nArrayAt, .t. ) oBrowse:Refresh() endif xbrowser oBrowse:aDeleted <------ return nil it delete the row but then when I need oBrowse:aDeleted I have the ...
by Silvio.Falconi
Mon Nov 20, 2023 12:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with oBrowse:aDeleted
Replies: 2
Views: 252

Re: colorize a xbrowse with a brush

... is a color         WITH OBJECT  oBrowse:aCols[6]           :bClrStd := {|| { CLR_WHITE,IIF(oBrowse:aArrayData[ oBrowse:nArrayAt,6],(oBrowse:aArrayData[ oBrowse:nArrayAt,8]),CLR_WHITE)}}           :bEditValue :={ || "" ...
by Silvio.Falconi
Wed Nov 08, 2023 9:04 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: colorize a xbrowse with a brush
Replies: 3
Views: 366

Filter y MakeTotals en xBrowse (to Mr. Nagues)

... oBrw:aFilter :=aDataFilter oBrw:aCols[ 3]:nEditType :=EDIT_GET oBrw:aCols[ 3]:bOnPostEdit :={|oCol,xVal,nKey| If(nKey==VK_RETURN,(COMPONENTES[oBrw:nArrayAt][ 3]:=xVal,oBrw:Refresh(),oBrw:MakeTotals()),)} oBrw:aCols[ 3]:nFooterType :=AGGR_SUM oBrw:aCols[ 3]:nFootStrAlign :=AL_RIGHT oBrw:Maketotals() ...
by TOTOVIOTTI
Mon Aug 28, 2023 1:34 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Filter y MakeTotals en xBrowse (to Mr. Nagues)
Replies: 0
Views: 199

Re: GET and bLostFocus

Hello, I think I explained it wrong. If I change the focus from the FIRST field to the LAST field, the data is changed because oBrw:nArrayAt is still correct. On the other hand, if I change the focus by clicking on another row in xbrowse (not the one i am reading in FIRST/LAST),+ the data ...
by Maurizio
Thu Jul 13, 2023 3:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GET and bLostFocus
Replies: 10
Views: 581

Line number

Hi,

There is an xBrowse with an array. If there is no filter (len(oBrw:filter)=0), then the number of the current line with so
oBrw:nArrayAt. However, if there is a filter, oBrw:nArrayAt will have the value of the filter string. How do I get the current xBrowser line number when using a filter ?
by Natter
Sun May 14, 2023 9:36 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Line number
Replies: 4
Views: 184

Re: Mr. Rao, errror xBrowse y oBrw:SetMultiSelectCol()

if (nn:= ASCAN( oBrw:aCols. { |o| o:cHeader == "NOMBRE" } )) > 0 oBrw:aArrayData[ oBrw:nArrayAt, nn ] := "nuevo nombre" Instead, please do oBrw:oCol( "NOMBRE" ):varPut( "neuvo nombre" ) Or, even better and recommended: ...
by nageswaragunupudi
Sun Nov 13, 2022 8:58 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Mr. Rao, errror xBrowse y oBrw:SetMultiSelectCol()
Replies: 7
Views: 694

Mr. Rao, errror xBrowse y oBrw:SetMultiSelectCol()

... }, y defino :SetMultiselectCol() al hacer : if (nn:= ASCAN( oBrw:aCols. { |o| o:cHeader == "NOMBRE" } )) > 0 oBrw:aArrayData[ oBrw:nArrayAt, nn ] := "nuevo nombre" .... No lo muestra en el browse, y nn tiene un valor mas, o sea para el arraydata "nn" == 3, cuando ...
by Ariel
Fri Nov 11, 2022 11:06 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Mr. Rao, errror xBrowse y oBrw:SetMultiSelectCol()
Replies: 7
Views: 694

colorize xbrowse on specific col/row

... If I make For n= 1 to Len(aPos) nRow:= aPos[n][1] nCol:= aPos[n][2] oBrw1:aCols[nCol]:bClrStd := {|| { CLR_BLACK,IIf(oBrw1:nArrayAt=nRow, nColor1,CLR_WHITE) } } next it colorize only the last nRow , so I think it need to make a codeblock but I not Know How make it Can U ...
by Silvio.Falconi
Tue May 31, 2022 8:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: colorize xbrowse on specific col/row
Replies: 5
Views: 459

colorize an subarray element

... I need to colorize the last 5 element of the second column if are the same of first column from oCol:oBrw:aArrayData[oCol:oBrw:nArrayAt,2,3] to oCol:oBrw:aArrayData[oCol:oBrw:nArrayAt,2,7] I made the xbrowse with @ 90, 10 XBROWSE  oBrw OF oDlgRitardo  SIZE -10,-80 ...
by Silvio.Falconi
Fri May 06, 2022 8:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: colorize an subarray element
Replies: 0
Views: 127

Re: color the cells of the xbrowse

LOCAL CellRowIndex := This.CellRowIndex LOCAL CellColIndex := This.CellColIndex LOCAL CellValue := This.CellValue CellRowIndex -> oBrw:nArrayAt CellColIndex -> oCol := oBrw:aCols[ n ] CellValue -> nCellValue := oCol:value I believe this is the case in fivewin but I'm not sure
by Silvio.Falconi
Wed Apr 20, 2022 11:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: color the cells of the xbrowse
Replies: 11
Views: 871

Re: search highest digit in the array

... oBrw:aArraydata local atest:= aFindMax( aVals ) local nRow:= atest[1] local nCol:= atest[2] oBrw:aCols[nCol]:bClrStd := {|| { CLR_BLACK,IIf(oBrw:nArrayAt=nRow, nColor1,nColor2) } } return nRow any suggestion ?
by Silvio.Falconi
Thu Mar 10, 2022 8:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: search highest digit in the array
Replies: 7
Views: 507

Re: Xbrowse and Array

I was able to find solution in sample code

oItems:aArrayData[ oItems:nArrayAt, 1 ]
by cdmmaui
Tue Feb 08, 2022 7:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse and Array
Replies: 2
Views: 343

Problem to save record from array (ArrayToDBF)

... cItemFlds, { || AllTrim( FIELD->INVNUM ) = alltrim(nInvoice) }) ) If I delete a record on xbrowse I use ADel( oBrowse:aArrayData, oBrowse:nArrayAt, .t. ) when I must save I made //before the deleted of xbrowse if ! Empty( oBrowse:aDeleted ) oPartRes:ArrayToDBF( oBrowse:aDeleted, cItemFlds,nil ...
by Silvio.Falconi
Thu Apr 29, 2021 8:55 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem to save record from array (ArrayToDBF)
Replies: 0
Views: 347

replace value on xbrowse ( tdatabase)

... oBrowse:aCols[ 7] :bEditValue := TotalDays(oBrowse) END I tried with ( but not run ok ) Function TotalDays(oBrowse) local nRecord := oBrowse:narrayat local dStart := oBrowse:aArrayData[nRecord][5] local dEnd := oBrowse:aArrayData[nRecord][6] local nGiorni:= (dEnd-dStart)+1 *oBrowse:aCols[7]:VarPut(nGiorni) ...
by Silvio.Falconi
Tue Apr 20, 2021 8:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: replace value on xbrowse ( tdatabase)
Replies: 4
Views: 473

ArrayIncrFilter

... n ] If n == 1 oCol:nEditType := EDIT_GET oCol:bOnPostEdit := { | oCol, xVal, nKey | If( nKey == VK_RETURN,aData[oFld:nOption][oBrw[oFld:nOption]:nArrayAt,1]:=xVal,) } oCol:bEditWhen := { || IF(aData[oFld:nOption][oBrw[oFld:nOption]:nArrayAt,6]=0,.T.,.F.) } ElseIf n == 2 oCol:nEditType := EDIT_GET ...
by jbrita
Thu Apr 01, 2021 2:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ArrayIncrFilter
Replies: 2
Views: 641
PreviousNext

Return to advanced search