Search found 807 matches: aadd

Return to advanced search

De Record Set a Array ? SOLUCIONADO con oRsGetRows()

... a dos arrarys, uno para los primeros 12 campos y otro array para los siguientes 12 campos.? Ahora lo hago a pie, pero no me agrada el código :-( AADD(anPzs,oRsSal:Fields("PZSENE"):Value) AADD(anPzs,oRsSal:Fields("PZSFEB"):Value) AADD(anPzs,oRsSal:Fields("PZSMZO"):Value) ...
by Armando
Sat Feb 17, 2024 1:12 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: De Record Set a Array ? SOLUCIONADO con oRsGetRows()
Replies: 2
Views: 132

Re: SAPI : change Voice

Simply add this line at the top:

static aEvents := {}

and then use this:

oVoice:__hSink = __axRegisterHandler( oVoice:__hObj, { | ... | AAdd( aEvents, { ... } ) } )

Finally, after the dialog, do:

XBrowser( aEvents )
by Antonio Linares
Sun Feb 11, 2024 9:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: SAPI : change Voice
Replies: 69
Views: 3558

Re: Creating table with Trichedit

... {" Ok ", " 2", " 3", "4","5","6", "7", "8", "9"} AaDd(aTable,{1,,23,,44,,61,,80} ) AaDd(aTable,{,16,,36,,59,68,,89} ) AaDd(aTable,{,,28,,49,58,,71,84} ) oRTF := SetRT( cOutFile ) NEW PARAGRAPH oRTF ...
by Silvio.Falconi
Mon Jan 29, 2024 3:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creating table with Trichedit
Replies: 18
Views: 1451

Re: Creating table with Trichedit

... {" Ok ", " 2", " 3", "4","5","6", "7", "8", "9"} AaDd(aTable,{1,,23,,44,,61,,80} ) AaDd(aTable,{,16,,36,,59,68,,89} ) AaDd(aTable,{,,28,,49,58,,71,84} ) oRTF := SetRT( cOutFile ) NEW PARAGRAPH oRTF ...
by MMK
Mon Jan 29, 2024 11:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creating table with Trichedit
Replies: 18
Views: 1451

oBrw:report() ... control fonts

... I need to have another font I made oFontCopy := TFont():New("TAHOMA",0,-108,.F.,,180,,,,,,,,,,oRep:oDevice) //to print a text nscapment aadd(oRep:aFont, oFontCopy) then oRep:bStartPage := { || oRep:Say(10, cTextCopy, 3,2,1450) } why not run ? the error Error description: Error BASE/1132 ...
by Silvio.Falconi
Wed Dec 13, 2023 11:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: oBrw:report() ... control fonts
Replies: 0
Views: 311

Re: copy a row of xbrowse

... oBrw:SetFocus() ) Function Giverows(oBrw) local n,atmp:={},nAt For n= 1 to Len( oBrw:aselected) nAt := oBrw:aArrayData[ oBrw:aselected[n] ] aadd( aTmp, aclone(nat)) next return aTmp But then the paste is wrong
by Silvio.Falconi
Wed Dec 06, 2023 12:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5786

Re: copy a row of xbrowse

... 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: 5786

Re: copy a row of xbrowse

... ACTION ( aCopy := {}, // Initialize aCopy as an empty array FOR EACH nRow IN oBrw:aSelectedRows // Iterate over selected rows AAdd( aCopy, oBrw:aArrayData[nRow] ) // Add each selected row to aCopy NEXT, oBrw:SetFocus() ) ``` ### Modified Paste Functionality ```harbour // Inside ...
by Otto
Tue Dec 05, 2023 3:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5786

Re: copy a row of xbrowse

... acopy[1] with new codsep MENUITEM "Paste" WHEN acopy!=NIL ACTION ( ; oBrw:Lock(), ; aCopy[ 1 ] := codsep ,; aCopy[ 8 ] := 0 ,; //recno aadd( oBrw:aArrayData, aCopy ),; oBrw:Unlock( .t. ), ; acopy:=NIL ,; oBrw:RefreshCurrent(), oBrw:SetFocus() ) ENDMENU but when I modify it the nRecord:= ...
by Silvio.Falconi
Tue Dec 05, 2023 1:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5786

Re: copy a row of xbrowse

Silvio, You must search the selected and aadd( oBrw:aArrayData,aCopy ) each selected row. Then inserting: FOR I:= 1 to len(aCopy ) Regards, Otto Please try this test #include "fivewin.ch"static aCopystatic cItemFlds :="CodSep,Top,Left,Width,Height,desc,row,recno()" REQUEST ...
by Silvio.Falconi
Tue Dec 05, 2023 12:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5786

Re: copy a row of xbrowse

Silvio,

You must search the selected and
aadd( oBrw:aArrayData,aCopy )
each selected row.

Then inserting: FOR I:= 1 to len(aCopy )


Regards,
Otto
by Otto
Tue Dec 05, 2023 10:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5786

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 ,; >MENUITEM "Copy" WHEN acopy=NIL ACTION ( aCopy := oBrw:aRow,; >oBrw:SetFocus() ...
by Silvio.Falconi
Tue Dec 05, 2023 9:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5786

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

Xbrowse, FastEdit y xBrw:Edit() RESUELTO

... oBrw:Edit. Por lo demás todo funciona Supongo que para variar soy yo el torpe :oops: pero no puedo darme cuenta que está mal. //Script de la tabla aAdd( aSql, 'SELECT l.id, l.lugar, l.numerodellaves FROM llaves AS l ORDER BY l.id' ) //campos y cabezales para el xbrowse aAdd( aCampos, { 'id', 'lugar', ...
by jose_murugosa
Mon Jul 17, 2023 7:00 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Xbrowse, FastEdit y xBrw:Edit() RESUELTO
Replies: 7
Views: 320

Problemas con Menu POPUP.

... MenuPrin() local i := 0 local TablaMnu := {} local cAccion // aca armo el menu de este usuario if Nivel==1 .OR. Nivel==2 OPCMENU->(DbEval({|| aadd(TablaMnu,{Orden,Tipo,Opcion,Mensaje,Accion,Imagen}) }; ,{|| !deleted() }; ,{|| !eof() })) elseif PERFILFW->(DbSetOrder(1),dbseek(cript(Usuari))) ...
by José Camilo
Mon Jun 05, 2023 3:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas con Menu POPUP.
Replies: 2
Views: 204
Next

Return to advanced search