Ayuda con Codigo
Publicado por saul (362 intervenciones) el 15/03/2004 22:26:11
Tengo esta ayuda en un textbox y al pulsar cualquier letra me modifica el comboBox.. Pero cuando no quiero buscar por nombre si nor codigo no funciona me podrian echar una mano...
Gracias.
LOCAL nIndex
FOR nIndex = 1 TO ThisForm.cboBuscar.ListCount
IF UPPER(ThisForm.cboBuscar.ListItem(nIndex)) => UPPER(ALLTRIM( this.Value ) )
ThisForm.cboBuscar.ListIndex = nIndex
EXIT
ENDIF
ENDFOR
ThisForm.cboBuscar.Refresh
Gracias.
LOCAL nIndex
FOR nIndex = 1 TO ThisForm.cboBuscar.ListCount
IF UPPER(ThisForm.cboBuscar.ListItem(nIndex)) => UPPER(ALLTRIM( this.Value ) )
ThisForm.cboBuscar.ListIndex = nIndex
EXIT
ENDIF
ENDFOR
ThisForm.cboBuscar.Refresh
Valora esta pregunta


0