Search found 44 matches: acopy

Return to advanced search

Re: Acopy para matrices

Gracias Willi, Jose y Sr. Rao Es muy bueno tener la ayuda de este foro. Quizá no me expliqué bien, pero la solución que funcionó magníficamente con algún pequeño ajuste fue la de Willy. Porque en realidad yo quería poder añadir varios arrays a un array que reúna todos los elementos de los mismos, y...
by JoseAlvarez
Thu Mar 07, 2024 2:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Acopy para matrices
Replies: 5
Views: 260

Re: Acopy para matrices

Gracias Willi, Jose y Sr. Rao Es muy bueno tener la ayuda de este foro. Quizá no me expliqué bien, pero la solución que funcionó magníficamente con algún pequeño ajuste fue la de Willy. Porque en realidad yo quería poder añadir varios arrays a un array que reúna todos los elementos de los mismos, y ...
by jose_murugosa
Thu Mar 07, 2024 2:23 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Acopy para matrices
Replies: 5
Views: 260

Re: Acopy para matrices

JoseAlvarez wrote:aArray2 := aClone(aArray1)

Yes
by nageswaragunupudi
Wed Mar 06, 2024 3:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Acopy para matrices
Replies: 5
Views: 260

Re: Acopy para matrices

aArray2 := aClone(aArray1)
by JoseAlvarez
Tue Mar 05, 2024 5:27 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Acopy para matrices
Replies: 5
Views: 260

Re: Acopy para matrices

Estimado, prueba esto....
Code: Select all  Expand view

Function ACOPYARRAY(aArr, nIni, nFin)
local nLen, nCont, aRet := {}
nLEN = LEN(aArr)
FOR nCont := nIni TO nFin
   AADD(aRet, aArr[nCont])
NEXT nCont

Return(aRet)
 
by Willi Quintana
Tue Mar 05, 2024 4:34 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Acopy para matrices
Replies: 5
Views: 260

Acopy para matrices

Queridos compañeros del Foro, Quisiera hacer una función parecida a Acopy pero para matrices. La idea es que con ella se pueda hacer un "append" de una matriz a otra (de igual estructura). He estado tratando de buscar el como, pero por el momento ...
by jose_murugosa
Tue Mar 05, 2024 3:49 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Acopy para matrices
Replies: 5
Views: 260

Insert an record on array

... a record between two rows the first 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)          ...
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 ...
by Silvio.Falconi
Wed Dec 06, 2023 12:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5785

Re: copy a row of xbrowse

... of fwh Silvio, Here you have the solution. But, look also into xbrowse.prg in C:\FWH\Source\Classes\xbrowse.prg. MENUITEM "Copy" WHEN acopy=NIL ACTION ( aCopy := oBrw:aRow,; oBrw:SetFocus(), xbrowse(oBrw:aSelected) ) All you need is there. This is the biggest benefit of FiveWin that ...
by Silvio.Falconi
Wed Dec 06, 2023 11:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5785

Re: copy a row of xbrowse

... of fwh Silvio, Here you have the solution. But, look also into xbrowse.prg in C:\FWH\Source\Classes\xbrowse.prg. MENUITEM "Copy" WHEN acopy=NIL ACTION ( aCopy := oBrw:aRow,; oBrw:SetFocus(), xbrowse(oBrw:aSelected) ) All you need is there. This is the biggest benefit of FiveWin that ...
by Otto
Wed Dec 06, 2023 10:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5785

Re: copy a row of xbrowse

Perhaps... MENUITEM "Copy" WHEN acopy=NIL .and. oBrw:IsSelectedRow(); // only when is seletected ACTION IIF(Len(oBrw:aseleted) >1,Aclone:= Giverows (oBrw),aCopy := aclone(oBrw:aRow)),; oBrw:SetFocus() ) Function Giverows (oBrw) local ...
by Silvio.Falconi
Wed Dec 06, 2023 9:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5785

Re: copy a row of xbrowse

try using aclone, aCopy := aclone( oBrw:aRow ) Marcelo, No es el problema de copiar una fila, esto lo hace, el problema es que quiero copiar varias filas al mismo tiempo y si modifico una fila y guardo, las demás también modifican, ...
by Silvio.Falconi
Wed Dec 06, 2023 8:25 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5785

Re: copy a row of xbrowse

try using aclone, aCopy := aclone( oBrw:aRow )
by Marcelo Via Giglio
Tue Dec 05, 2023 7:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5785

Re: copy a row of xbrowse

... to handle multiple rows. Here is an approach to achieve this: 1. **Modify Copy Functionality**: Instead of copying a single row to `aCopy`, copy all selected rows. You can use a loop to go through the selected rows and add them to `aCopy`. 2. **Modify Paste Functionality**: When ...
by Otto
Tue Dec 05, 2023 3:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5785

Re: copy a row of xbrowse

Silvio, insert xBrowse(aCopy) in your functions to see what you copy and msgInfo's. Best regards, Otto I not understood when I copy insert on acopy the row I selected ( all field) change acopy[1] with new codsep MENUITEM "Paste" ...
by Silvio.Falconi
Tue Dec 05, 2023 1:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5785
Next

Return to advanced search