Comparación de datos vfp9.0

Hola otra ves de nuevo pidiendo tu ayuda pero ahora con otro problema veras tengo una caja de texto en la que jalo un valor numérico y en su lostfocus tengo algunas comparaciones el problema es que cuando esa caja su valor es de 1 me habilita 1 sola caja y si su valor es 10 de igual manera me habilita 1 siendo que me debería habilitar 10 cajas a continuación te pongo mis comparaciones:
if
thisform.text188.value="1" then
thisform.text6.visible= .t.
thisform.text6.enabled= .t.
else
if thisform.text188.value= "10"
then
thisform.text5.visible= .t.
thisform.text5.enabled= .t.
thisform.text6.visible= .t.
thisform.text6.enabled= .t.
thisform.text66.visible= .t.
thisform.text66.enabled= .t.
thisform.text89.visible= .t.
thisform.text89.enabled= .t.
thisform.text9.visible= .t.
thisform.text9.enabled= .t.
thisform.text10.visible= .t.
thisform.text10.enabled= .t.
thisform.text11.visible= .t.
thisform.text11.enabled= .t.
thisform.text15.visible= .t.
thisform.text15.enabled= .t.
thisform.text23.visible= .t.
thisform.text23.enabled= .t.
thisform.text24.visible= .t.
thisform.text24.enabled= .t.
thisform.text25.visible= .t.
thisform.text25.enabled= .t.
thisform.text29.visible= .t.
thisform.text29.enabled= .t.
thisform.text37.visible= .t.
thisform.text37.enabled= .t.
thisform.text38.visible= .t.
thisform.text38.enabled= .t.
thisform.text39.visible= .t.
thisform.text39.enabled= .t.
thisform.text43.visible= .t.
thisform.text43.enabled= .t.
thisform.text52.visible= .t.
thisform.text52.enabled= .t.
thisform.text53.visible= .t.
thisform.text53.enabled= .t.
thisform.text54.visible= .t.
thisform.text54.enabled= .t.
thisform.text59.visible= .t.
thisform.text59.enabled= .t.
thisform.text70.visible= .t.
thisform.text70.enabled= .t.
thisform.text71.visible= .t.
thisform.text71.enabled= .t.
thisform.text72.visible= .t.
thisform.text72.enabled= .t.
thisform.text76.visible= .t.
thisform.text76.enabled= .t.
thisform.text85.visible= .t.
thisform.text85.enabled= .t.
thisform.text86.visible= .t.
thisform.text86.enabled= .t.
thisform.text90.visible= .t.
thisform.text90.enabled= .t.
thisform.text94.visible= .t.
thisform.text94.enabled= .t.
thisform.text104.visible= .t.
thisform.text104.enabled= .t.
thisform.text105.visible= .t.
thisform.text105.enabled= .t.
thisform.text106.visible= .t.
thisform.text106.enabled= .t.
thisform.text110.visible= .t.
thisform.text110.enabled= .t.
thisform.text118.visible= .t.
thisform.text118.enabled= .t.
thisform.text119.visible= .t.
thisform.text119.enabled= .t.
thisform.text120.visible= .t.
thisform.text120.enabled= .t.
thisform.text124.visible= .t.
thisform.text124.enabled= .t.
thisform.text132.visible= .t.
thisform.text132.enabled= .t.
thisform.text133.visible= .t.
thisform.text133.enabled= .t.
thisform.text134.visible= .t.
thisform.text134.enabled= .t.
thisform.text138.visible= .t.
thisform.text138.enabled= .t.
de antemano muchas gracias espero tu respuesta

1 respuesta

Respuesta
1

Te aconsejo que en vez de poner el código en el LostFocus, lo pongas en el Valid.

Añade tu respuesta

Haz clic para o

Más respuestas relacionadas