Search found 411 matches: nat

Return to advanced search

Re: How to find out the IDs of controls and types?

Dear Jimmy,

nAt = AScan( ::aControls, { | oControl | oControl:hWnd == hChild } )
::aControls[ nAt ]
by Antonio Linares
Tue Jan 09, 2024 6:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to find out the IDs of controls and types?
Replies: 16
Views: 1845

Re: copy a row of xbrowse

... ( 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: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: 5772

Re: copy a row of xbrowse

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

Re: copy a row of xbrowse

... 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:aselected) uBook := Eval( oBrw:bBookMark ) nAt := Ascan( oBrw:aSelected, uBook ) aCopy:= aclone(oBrw:aArrayData[ ...
by Silvio.Falconi
Wed Dec 06, 2023 9:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5772

Ayuda, busqueda incremental

... xbusco, obusco, oRS1 ), oBrw:recset := ors1 ) of odlgSTK REDEFINE combobox oOrden var xOrden items tOrden ID 212 on change ( xOrden := oOrden:nAt, CambioOrden( ors1 ,xorden), obusco:setfocus() ) OF odlgSTK REDEFINE XBROWSE oBrw ID 181 recset oRS1 OF oDlgSTK FIELDS ; iif ( ( oRS1:Fields( "disconti" ...
by jpcavagnaro
Wed Nov 22, 2023 11:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ayuda, busqueda incremental
Replies: 1
Views: 310

error TXBROWSE:CARGOS

... var xdomic ID 206 OF ofld1:aDialogs[ 1 ] REDEFINE COMBOBOX oAudit_ant var wAudit_Ant ITEMS Taudit_antf ; ON CHANGE ( xAudit_Ant := oAudit_ant:nAt, CargoAntInfo( xAudit_Ant, ofld1:aDialogs[ 1 ] ) ) ; ID 4001 OF ofld1:aDialogs[ 1 ] when len( Taudit_antf ) > 0 REDEFINE say oNaudit var xnaudit ...
by jpcavagnaro
Wed Aug 30, 2023 12:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: error TXBROWSE:CARGOS
Replies: 3
Views: 276

combobox indices y datos ...

... esta forma tengo que almacenar en un array y despues en el boton de acceso a los datos que seleccione del combobox tengo que leer el array por un :nAt del combobox, lo que quisiera es no tener que hacer eso, directamente que cuando seleccione del combobox me devuelva la columna del "indice" ...
by goosfancito
Thu Jul 27, 2023 2:08 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: combobox indices y datos ...
Replies: 1
Views: 173

Ayuda por favor con folder y listbox

... var xdomic ID 206 OF ofld1:aDialogs[ 1 ] REDEFINE COMBOBOX oAudit_ant var wAudit_Ant ITEMS Taudit_antf ; ON CHANGE ( xAudit_Ant := oAudit_ant:nAt, CargoAntInfo( xAudit_Ant, ofld1:aDialogs[ 1 ] ) ) ; ID 4001 OF ofld1:aDialogs[ 1 ] when len( Taudit_antf ) > 0 ......... *------------------------------------------------------------------------------------------------------------- ...
by jpcavagnaro
Wed Mar 29, 2023 12:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ayuda por favor con folder y listbox
Replies: 1
Views: 238

Re: COMBOBOX WITH Sort

Perhaps, if you are using pellesC, you need to "remove" the SORT variable in the combobox as NO.

Maybe:
ON Change := cTipo_Cli[ oCbx:nAt ]

Regards, saludos.
by karinha
Fri Mar 24, 2023 2:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: COMBOBOX WITH Sort
Replies: 2
Views: 201

Re: delete identical records

... local nValore:= 6 local nTipo := 3 run ok For n= 1 to 90 For k= 1 to 90 For j= 1 to 90 nTotale := Calcolo_3_numeri(n,k,j,ntipo) If nTotale=nvalore nAt := AScan( aTmp, { |a| a[1] = k .and. a[2] = n .or. a[3] = j } ) If nAt == 0 aadd(aTmp,{n,k,j}) Endif Endif next next next I understood the error ...
by Silvio.Falconi
Wed Nov 02, 2022 10:55 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: delete identical records
Replies: 6
Views: 357

Re: delete identical records

change into For n= 1 to 90 For k= 1 to 90 For j= 1 to 90 nTotale := Calcolo_3_numeri(n,k,j,ntipo) If nTotale=nvalore nAt := AScan( aTmp, { |a| a[1] = j .and. a[2] = k .or. a[3] = n} ) If nAt == 0 aadd(aTmp,{n,k,j}) Endif Endif next next next the calc is fast but is also bad because ...
by Silvio.Falconi
Wed Nov 02, 2022 10:05 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: delete identical records
Replies: 6
Views: 357

Re: a Get on a buttonbar

Dear Silvio,

@ 2, 280 GET oGet VAR ::nyear SIZE 150,22 PIXEL OF ::oBar WHEN aShowCbx[2]:nat= 2 VALID ( aShowCbx[2]:Set( 2 ), .T. )
by Antonio Linares
Sat Oct 01, 2022 10:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: a Get on a buttonbar
Replies: 9
Views: 562

a Get on a buttonbar

... ::oBar HEIGHTGET 18 STYLE CBS_DROPDOWN ; ON Change oGet:refresh() //get @ 2, 280 GET oGet VAR ::nyear SIZE 150,22 PIXEL OF ::oBar WHEN aShowCbx[2]:nat= 2
by Silvio.Falconi
Sat Oct 01, 2022 7:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: a Get on a buttonbar
Replies: 9
Views: 562

Re: add a number on Random

... "Aggiungi un numero"; action OneNumb(oBtnNum, oSay,@aNatural ) ..... Function OneNumb(oCmb, oSay,aNatural ) local atemp := {} local nAt,nAp local cNum //check and del to aNatural the numbers are allready on alista For n=1 to Len(aLista) cNum:= alista[n] nAp:= AScan( aNatural, val(cNum) ...
by Silvio.Falconi
Sat Mar 26, 2022 10:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: add a number on Random
Replies: 8
Views: 451

Re: add a number on Random

... oOpe[10] Prompt "+" size 30,30 PIXEL FLAT OF oDlg TOOLTIP "Aggiungi un numero"; WHEN Len( aNatural ) > 0 ; ACTION ( nAt := HB_RandomInt( 1, Len( aNatural ) ), ; AAdd( aLista, aNatural[ nAt ] ), ; HB_ADel( aNatural, nAt, .t. ), ; AddOne(oBtnNum,aLista,oSay) ) Function ...
by Silvio.Falconi
Sat Mar 26, 2022 8:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: add a number on Random
Replies: 8
Views: 451
Next

Return to advanced search