Search found 119 matches: aselected

Return to advanced search

Re: xbrowse SelectRow method

Or, if we want to deselect a specific row number, which is not the current row, we can do like this. if ( nAt := AScan( oBrw:aSelected, nRecNo ) ) > 0HB_ADel( oBrw:aSelected, nAt, .t. )endifoBrw:Refresh() We do not recommend this, but this is possible. ...
by Silvio.Falconi
Mon Apr 01, 2024 10:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse SelectRow method
Replies: 3
Views: 684

Insert an record on array

... field must be "codsep" field how can I do ? TO paste an record of oBrw:aArrayData I use an array aCopy where I save the row Copied (oBrw:aselected) and I use these commands oBrw:Lock()              For n=1 to Len(acopy)                aCopy[n][1] := codsep  ...
by Silvio.Falconi
Fri Jan 12, 2024 2:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Insert an record on array
Replies: 4
Views: 826

Re: copy a row of xbrowse

MENUITEM "Copy" WHEN acopy=NIL .and. oBrw:IsSelectedRow(); // only when is seletected ACTION ( IIF(Len(oBrw:aselected) >1,aClone:=Giverows(oBrw),; aCopy := aclone(oBrw:aRow)),; oBrw:SetFocus() ) Function Giverows(oBrw) local n,atmp:={},nAt For n= 1 to Len( oBrw:aselected) ...
by Silvio.Falconi
Wed Dec 06, 2023 12:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5789

Re: copy a row of xbrowse

> FOR EACH nRow IN oBrw:aSelectedRows > NOT EXIST IN XBROWSE !!!!!! > wich xbrowse you have ? I have the last release of fwh Silvio, Here you have the solution. But, look also into xbrowse.prg in C:\FWH\Source\Classes\xbrowse.prg. ...
by Silvio.Falconi
Wed Dec 06, 2023 11:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5789

Re: copy a row of xbrowse

> FOR EACH nRow IN oBrw:aSelectedRows > NOT EXIST IN XBROWSE !!!!!! > wich xbrowse you have ? I have the last release of fwh Silvio, Here you have the solution. But, look also into xbrowse.prg in C:\FWH\Source\Classes\xbrowse.prg. ...
by Otto
Wed Dec 06, 2023 10:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5789

Re: copy a row of xbrowse

... Giverows (oBrw),aCopy := aclone(oBrw:aRow)),; oBrw:SetFocus() ) Function Giverows (oBrw) local n,uBook,nAt local aTmp:= {} For n = 1 to len(oBrw:aselected) uBook := Eval( oBrw:bBookMark ) nAt := Ascan( oBrw:aSelected, uBook ) aCopy:= aclone(oBrw:aArrayData[ nAt ]) Next return acopy
by Silvio.Falconi
Wed Dec 06, 2023 9:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5789

Re: copy a row of xbrowse

Silvio, try with the code I posted. Otto Otto , Now run ok but copy and paste only one row I wish copy and paste more rows only oBrw:aselected new test #include "fivewin.ch" static aCopyFunction Main()   Test("00001")   Test("00002") retur ...
by Silvio.Falconi
Tue Dec 05, 2023 8:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5789

Re: copy a row of xbrowse

...  ENDMENU   return oPop  Now seem run ok, but only one row and if I wish copy more rows ? I tried to change aCopy := oBrw:aRow With aCopy := oBrw:aSelected but not run
by Silvio.Falconi
Tue Dec 05, 2023 8:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5789

Re: Is there any feature to select multi line in xbrowser

aSel :=oBrw:aSelected
XBROWSER aSel
by FranciscoA
Tue Oct 03, 2023 6:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Is there any feature to select multi line in xbrowser
Replies: 2
Views: 336

Re: Una sobre xBrowse

... un registro para elegirlo, necesito ejecutar una función para hacer una operaciones sobre el registro seleccionado. No me vale el FOR NEXT de oBrx:aSelected, necesito hacer las operaciones al momento del clic. Sobre que método me puedo apoyar para salir a la función que hace los cálculos ? Saludos ...
by El Loco
Fri Jul 21, 2023 6:47 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Una sobre xBrowse (solucionado)
Replies: 6
Views: 388

Una sobre xBrowse (solucionado)

... un registro para elegirlo, necesito ejecutar una función para hacer una operaciones sobre el registro seleccionado. No me vale el FOR NEXT de oBrx:aSelected, necesito hacer las operaciones al momento del clic. Sobre que método me puedo apoyar para salir a la función que hace los cálculos ? Saludos ...
by Armando
Fri Jul 21, 2023 5:23 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Una sobre xBrowse (solucionado)
Replies: 6
Views: 388

Re: problem wth SetMultiSelectCol

Perhaps :bOnMultiSelect := { || (IIF(LEN(oBrw:aSelected)==0,; Btnbar(1,oDlg:oBar,oDlg,oDbf,oBrw),; Btnbar(2,oDlg:oBar,oDlg,oDbf,oBrw) ),Refresh_title(oBrw,oDlg,oDbf,cTitle)) } but it shakes and flashes all the same I I try with :bOnMultiSelect := ...
by Silvio.Falconi
Sat Apr 29, 2023 9:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: problem wth SetMultiSelectCol
Replies: 11
Views: 677

Re: Print oBrowse aselected

oDbf     := oBrw:oDbfnAt      := 1nSaveRec := oDbf:RecNo()////do while nAt <= Len( oBrw:aSelected )   oDbf:GoTo( oBrw:aSelected[ nAt ] )   // PRINT oDbf:Fields the way you want   nAt++enddooDbf:GoTo( ...
by nageswaragunupudi
Wed Apr 26, 2023 5:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Print oBrowse aselected
Replies: 5
Views: 313

Re: Print oBrowse aselected

What is the source of your browse? Array or DBF or whatelse? My solution is an example that works with DBF. If not DBF, you should understand the logic and apply to your case. SEE your mail I use Tdatabase oDbf:=TComuni():New() oDbf:setorder(1) oDbf:Gotop() local aCols := { ; { "COMUNE", ...
by Silvio.Falconi
Wed Apr 26, 2023 8:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Print oBrowse aselected
Replies: 5
Views: 313

Re: Print oBrowse aselected

What is the source of your browse? Array or DBF or whatelse?

My solution is an example that works with DBF.
If not DBF, you should understand the logic and apply to your case.
by nageswaragunupudi
Wed Apr 26, 2023 8:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Print oBrowse aselected
Replies: 5
Views: 313
Next

Return to advanced search