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 ...
Search found 44 matches: acopy
Searched query: acopy
- Thu Mar 07, 2024 2:36 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Acopy para matrices
- Replies: 5
- Views: 717
- Thu Mar 07, 2024 2:23 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Acopy para matrices
- Replies: 5
- Views: 717
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 ...
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 ...
- Wed Mar 06, 2024 3:44 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Acopy para matrices
- Replies: 5
- Views: 717
Re: Acopy para matrices
YesJoseAlvarez wrote:aArray2 := aClone(aArray1)
- Tue Mar 05, 2024 5:27 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Acopy para matrices
- Replies: 5
- Views: 717
Re: Acopy para matrices
aArray2 := aClone(aArray1)
- Tue Mar 05, 2024 4:34 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Acopy para matrices
- Replies: 5
- Views: 717
Re: Acopy para matrices
Estimado, prueba esto....
Code: Select all | Expand
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)
- Tue Mar 05, 2024 3:49 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Acopy para matrices
- Replies: 5
- Views: 717
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 no he podido, quizá no dan las neuronas :D (los años ...
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 no he podido, quizá no dan las neuronas :D (los años ...
- Fri Jan 12, 2024 2:54 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Insert an record on array
- Replies: 4
- Views: 1187
Insert an record on array
... to insert 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)
aCopy[n][1] := codsep
aCopy[n][32 ...
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)
aCopy[n][1] := codsep
aCopy[n][32 ...
- Wed Dec 06, 2023 12:04 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: copy a row of xbrowse
- Replies: 36
- Views: 9237
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)
nAt := oBrw ...
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)
nAt := oBrw ...
- Wed Dec 06, 2023 11:52 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: copy a row of xbrowse
- Replies: 36
- Views: 9237
Re: copy a row of xbrowse
... release 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 ...
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 ...
- Wed Dec 06, 2023 10:53 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: copy a row of xbrowse
- Replies: 36
- Views: 9237
Re: copy a row of xbrowse
... release 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 ...
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 ...
- Wed Dec 06, 2023 9:13 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: copy a row of xbrowse
- Replies: 36
- Views: 9237
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 n,uBook,nAt
local aTmp:= {}
For n = 1 to len(oBrw ...
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 n,uBook,nAt
local aTmp:= {}
For n = 1 to len(oBrw ...
- Wed Dec 06, 2023 8:25 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: copy a row of xbrowse
- Replies: 36
- Views: 9237
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, es como si las filas copiadas tuvieran lo mismo. número de ...
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, es como si las filas copiadas tuvieran lo mismo. número de ...
- Tue Dec 05, 2023 7:07 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: copy a row of xbrowse
- Replies: 36
- Views: 9237
Re: copy a row of xbrowse
try using aclone, aCopy := aclone( oBrw:aRow )
- Tue Dec 05, 2023 3:17 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: copy a row of xbrowse
- Replies: 36
- Views: 9237
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 ...
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 ...
- Tue Dec 05, 2023 1:14 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: copy a row of xbrowse
- Replies: 36
- Views: 9237
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" WHEN acopy!=NIL ACTION ( ;
oBrw:Lock(), ;
aCopy[ 1 ] := codsep ...
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" WHEN acopy!=NIL ACTION ( ;
oBrw:Lock(), ;
aCopy[ 1 ] := codsep ...