FoxPro/Visual FoxPro - AYUDA CON ADDITEM DE COMBOBOX

 
Vista:

AYUDA CON ADDITEM DE COMBOBOX

Publicado por ANDRES (72 intervenciones) el 27/04/2007 20:13:07
HOLA LEI POR AHY QUE A UN ADDITEM DEL COMBO BOX SE LE PUEDEN LLEVAR VARIABLES PERO NO SE COMO HACERLO ESTA ES LA INSTRUCCION

ESTO VA EN EL KEYPRESS DE UN TEXT

if nkeycode=13 or nkeycode=9 then
mitem=alltrim(this.value)
Select unidad1 from items where item = mitem into cursor mcursoritems1
select mcursoritems1
go top
if not eof()
munid1=mcursoritems1.unidad1
endif
Select unidad2 from items where item = mitem into cursor mcursoritems2
select mcursoritems2
go top
if not eof()
munid2=mcursoritems2.unidad2
endif
Select unidad3 from items where item = mitem into cursor mcursoritems3
select mcursoritems3
go top
if not eof()
munid3=mcursoritems3.unidad3
endif
thisform.combo2.additem (munid1)
thisform.combo2.additem (munid)
thisform.combo2.additem ("munid3)
endif
ME ESTA LLEVANDO BIEN LAS VARIABLES PERO NO ME LAS MUESTRA, ALGUNA SUGERENCIA O COMO LO SOLUCIONO MUCHAS GRACIAS O COMO LAS TENGO QUE PONER LO QUE SEA
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

JEJE QUE PENA VACIAR CONTENIDO DEL ADDITEM

Publicado por ANDRES (72 intervenciones) el 27/04/2007 20:34:24
jeje me resulto otra pregunta que no se como hacerlo
como hago para vaciar el contenido de el additem que le di en la consulta anterior
por ejemplo en lostfocus del combo decirle que vacie el contenido de las variables y que quede en blanco el contenido
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

NO SUPO USTED NADA PORQUE NO LEE

Publicado por ANDRES (72 intervenciones) el 27/04/2007 21:23:40
OJALA QUE FUERA USTED EL QUE TUVIERA PROBLEMAS, Y QUE ALGUIEN TE RESPONDIERA ASI, HABER COMO TE SIENTES Y SI NO LEE EL PRIMER MENSAJE, QUE ES DONDE ESTA EL PROBLEMA ES LOGICO QUE NO VA SABER NADA,
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar