FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour fiveweb: combobox.
Posts: 61
Joined: Tue Nov 19, 2013 02:13 PM
fiveweb: combobox.
Posted: Thu Jun 30, 2016 03:39 PM

Antonio: necesito en funci贸n ff() (de este c贸digo que te mando) tener la posici贸n elegida del vector en el combobox
o pasar la opci贸n elegida como par谩metro a esa funci贸n
de que manera lo hago ? o como debo trabajarlo?
GRACIAS
SLDOS

LOCAL aValor:={'uno','dos','tres'}
LOCAL cValor:='uno'
oGet1 := TComboBox():New( 58 , 150 , , , oDlg , aValor , 'oGet1' , cValor , )
@ 150, 80 BUTTON "Imprimdo Recibo" OF oDlg SIZE 200, 40 ACTION document.location = "lupaMENUcliente.exe?valido:"
ATail( oDlg:aControls ):cAction += '+ "' + fff() + ':"'

ACTIVATE DIALOG oDlg NOWAIT

return nil

function fff
*===========
//ACA NECESITO EL VALOR ELEGIDO PARA GRAVARLO EN UN ARCHIVO
return (NIL)

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: fiveweb: combobox.
Posted: Thu Jun 30, 2016 06:19 PM

Silvina,

ATail( oDlg:aControls ):cAction += '+ "' + oGet1.value + ':"'

Revisa FiveWeb\samples\testcomb.prg

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 61
Joined: Tue Nov 19, 2013 02:13 PM
Re: fiveweb: combobox.
Posted: Thu Jun 30, 2016 06:32 PM

esa instrucci贸n la copi茅 tal cual y me da error de sintaxis.
igual lo que necesito es pasarlo a una funci贸n ... ser谩 posible?
gracias

Posts: 61
Joined: Tue Nov 19, 2013 02:13 PM
Re: fiveweb: combobox.
Posted: Thu Jun 30, 2016 06:38 PM

perd贸n, s铆 pude ejecutar y ah铆 me dio error.
probe de esta forma que es lo que necesito y no funciona...

oGet1 := TComboBox():New( 58 , 150 , , , oDlg , aValor , 'oGet1' , cValor , )

@ 150, 80 BUTTON   "Imprimdo Recibo" OF oDlg SIZE 200, 40 ACTION document.location = "lupaMENUcliente.exe?valido:"+ ;
    document.getElementById( "oGet1" ).value + ":"

ATail( oDlg:aControls ):cAction += '+ "' + ff(oGet1:value) + ':"'


ACTIVATE DIALOG oDlg NOWAIT

Else

endif

return nil

function ff (xx)
*===========

return (xx)

Posts: 61
Joined: Tue Nov 19, 2013 02:13 PM
Re: fiveweb: combobox. solucionado !
Posted: Thu Jun 30, 2016 07:11 PM

lo solucione asi , de esta manera puedo ejecutar la funci贸n mandadole como par谩metro el elemento elegido
ATail( oDlg:aControls ):cAction += '+ "' + ff('+"+oGet1.value+"') + ':"'

donde en
function ff (xx)
buscar xx
grabar
return ()

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: fiveweb: combobox.
Posted: Thu Jun 30, 2016 08:49 PM

muy bien

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion