Visual Basic - comparar 2 cadenas de texto

Life is soft - evento anual de software empresarial
 
Vista:

comparar 2 cadenas de texto

Publicado por Edu (20 intervenciones) el 14/05/2004 10:58:37
HOLA AMIGOS:

NECESITO COMPARAR 2 CADENAS DE TEXTO Y SABER SI SON DIFERENTES O IGUALES, ES DECIR:

EJEMPLO C/DATO,35 COMPARADA CON C/DATO, 35

LA DIFERENCIA ES 1 ESPACIO, PERO PUEDE SER CUALQUIERA

NO SE SI ME EXPLICO, UN SALUDO
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

RE:comparar 2 cadenas de texto

Publicado por miguel (1042 intervenciones) el 15/05/2004 03:43:28
Prueba con esto: saludos.
Me.Text1 = "C/DATO,35 "
Me.Text2 = "C/DATO, 35"
If Trim(Me.Text1) <> Trim(Me.Text2) Then
MsgBox "Diferentes", vbExclamation
End If
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