Search found 236 matches: narrayat

Return to advanced search

Re: XBROWSE, con Get, Combobox y CheckBox, en una misma Columna

Prueba asi y debería funcionar: oBrw:aCols[ 2 ]:bEditWhen = { || oBrw:nArrayAt != 8 } luego es el valor que esté devolviendo la expresión Prueba a hacer esto para saber el tipo de valor que hay: olbx101c:acols[4]:bEditWhen:= { || MsgInfo( ValType( olbx101c:aArrayData[olbx101c:nArrayAt][5] ...
by elmoiquique
Thu Mar 28, 2024 9:01 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: XBROWSE, con Get, Combobox y CheckBox, en una misma Columna
Replies: 10
Views: 2200

Re: XBROWSE, con Get, Combobox y CheckBox, en una misma Columna

Prueba asi y debería funcionar: oBrw:aCols[ 2 ]:bEditWhen = { || oBrw:nArrayAt != 8 } luego es el valor que esté devolviendo la expresión Prueba a hacer esto para saber el tipo de valor que hay: olbx101c:acols[4]:bEditWhen:= { || MsgInfo( ValType( olbx101c:aArrayData[olbx101c:nArrayAt][5] ...
by Antonio Linares
Thu Mar 28, 2024 8:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: XBROWSE, con Get, Combobox y CheckBox, en una misma Columna
Replies: 10
Views: 2200

Re: XBROWSE, con Get, Combobox y CheckBox, en una misma Columna

Hola Antonio

Una consulta,,, como desabilito un EDIT_BUTTON dentro de un xbrowse, dependiendo de la condicion

olbx101c:acols[4]:bEditWhen:= { || olbx101c:aArrayData[olbx101c:nArrayAt][5]="1" }

lo hago de esta manera pero no me funciona, sigue estando habilitado

Gracias
by elmoiquique
Thu Mar 28, 2024 4:27 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: XBROWSE, con Get, Combobox y CheckBox, en una misma Columna
Replies: 10
Views: 2200

Re: To Nageswrao Del Objs on TscrollPanel

... ] oCol:bLDClickData := { || Erase_Items(oBrw,oPanel) } Function Erase_Items(oBrw,oPanel,aData,oDlg,oFontSmall) local nItem:= oBrw:aArrayData[ oBrw:nArrayAt ][2] oBrw:Delete() oBrw:Refresh() DeleteControl( oPanel, nItem ) return nil function DeleteControl( oPanel, nItem ) local nTop, nLeft for n ...
by Silvio.Falconi
Mon Mar 04, 2024 8:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Nageswrao Del Objs on TscrollPanel
Replies: 17
Views: 639

To Nageswrao Del Objs on TscrollPanel

... := oBrw:aCols[ i ] oCol:bLDClickData := { || Erase_Items(oBrw,oPanel) } NEXT Function Erase_Items(oBrw,oPanel) local nItem:= oBrw:aArrayData[ oBrw:nArrayAt ][2] aDel(oBrw:aArraydata,nItem-1) // xbrowser oBrw:aArraydata oPanel:aControls[nItem]:destroy() oBrw:refresh() oPanel:refresh() return nil ...
by Silvio.Falconi
Mon Feb 26, 2024 12:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Nageswrao Del Objs on TscrollPanel
Replies: 17
Views: 639

show a string into xbrowse

I have a field numeric and I wish show the string + "gg"

:bEditValue :={ || str(oBrw:aArrayData[ oBrw:nArrayAt,1])+"gg" }

why not run ?
by Silvio.Falconi
Thu Dec 07, 2023 11:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: show a string into xbrowse
Replies: 4
Views: 402

Re: copy a row of xbrowse

...   ) For many rows selected Not run ok oBrw:aSelected give number or numbers not the row oBrw:aRow is as ::aArrayData[ ::nArrayAt ] you can make For n= 1 to Len( oBrw:aselected) nAt := oBrw:aArrayData[ oBrw:aselected[n] ] aadd( acopy, aclone(nat)) next just an idea
by Silvio.Falconi
Wed Dec 06, 2023 11:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5754

Re: copy a row of xbrowse

... aCopy ),; oBrw:Unlock( .t. ), ; acopy:=NIL ,; oBrw:RefreshCurrent(), oBrw:SetFocus() ) ENDMENU but when I modify it the nRecord:= oBrowse:nArrayAt is the same
by Silvio.Falconi
Tue Dec 05, 2023 1:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5754

Re: copy a row of xbrowse

... "Copy" WHEN acopy=NIL ACTION ( aCopy := oBrw:aRow,; oBrw:SetFocus() ) and here: aadd( oBrw:aArrayData,aCopy ),; // oBrw:aArrayData[ oBrw:nArrayAt ] := aCopy ,; >MENUITEM "Copy" WHEN acopy=NIL ACTION ( aCopy := oBrw:aRow,; >oBrw:SetFocus() ) must be seletected to copy I ...
by Silvio.Falconi
Tue Dec 05, 2023 9:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5754

Re: copy a row of xbrowse

You have to extend here:
MENUITEM "Copy" WHEN acopy=NIL ACTION ( aCopy := oBrw:aRow,;
oBrw:SetFocus() )


and here:
aadd( oBrw:aArrayData,aCopy ),; // oBrw:aArrayData[ oBrw:nArrayAt ] := aCopy ,;
by Otto
Tue Dec 05, 2023 9:05 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5754

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: 243

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: 328

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: 188

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: 525

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: 170
Next

Return to advanced search