No puedo ver una consulta con like
Hola necesito ayuda, ¿me peudes ayudar? Necesito ver los registros usando un comando like en un select pero no me lo muestra, lo ingreso desde un textbox como se ve ahí, y después lo saco en un listbox .. Pero no me sale nada.. ¿por qué?
PUBLIC fila
LOCAL lc
Local array Vec(1)
lc=THISFORM.TEXT1.VALUE
*lc = "%" + lc1 + "%"
SELECT nombre,apellido,especialidad,telefono,ciudad FROM curriculum WHERE especialidad LIKE "%lc%" into array Vec
fila = 1
Thisform.lista.clear
Cargas = _tally
If cargas > 0
For j = 1 to cargas
THISFORM.lista.addListitem(Vec(j,1), fila, 1)
THISFORM.lista.addListitem(Vec(j,2), fila, 2)
THISFORM.lista.addListitem(VEC(J,3), fila, 3)
THISFORM.lista.addListitem(VEC(J,4), fila, 4)
THISFORM.lista.addListitem((VEC(J,5)), fila, 5)
fila = fila + 1
Next
endIf
Espero respuesta lo más pronto posible! Gracias!
PUBLIC fila
LOCAL lc
Local array Vec(1)
lc=THISFORM.TEXT1.VALUE
*lc = "%" + lc1 + "%"
SELECT nombre,apellido,especialidad,telefono,ciudad FROM curriculum WHERE especialidad LIKE "%lc%" into array Vec
fila = 1
Thisform.lista.clear
Cargas = _tally
If cargas > 0
For j = 1 to cargas
THISFORM.lista.addListitem(Vec(j,1), fila, 1)
THISFORM.lista.addListitem(Vec(j,2), fila, 2)
THISFORM.lista.addListitem(VEC(J,3), fila, 3)
THISFORM.lista.addListitem(VEC(J,4), fila, 4)
THISFORM.lista.addListitem((VEC(J,5)), fila, 5)
fila = fila + 1
Next
endIf
Espero respuesta lo más pronto posible! Gracias!
1 Respuesta
Respuesta de César Pech
1