
26/03/2003, 17:55
|
 | Colaborador | | Fecha de Ingreso: febrero-2001 Ubicación: 34.517 S, 58.500 O
Mensajes: 14.550
Antigüedad: 24 años, 1 mes Puntos: 535 | |
se me ocurre algo así:
<%
Numero = "544"
conjunto_a = "|1|2|3|4|5|"
conjunto_b = "|10|20|30|40|50|"
conjunto_c = "|114|52|6543|544|5654|"
If InStr(conjunto_a, "|" & Numero & "|") <> 0 then
EnConjunto = "A"
Else
If InStr(conjunto_b, "|" & Numero & "|") <> 0 then
EnConjunto = "B"
Else
If InStr(conjunto_c, "|" & Numero & "|") <> 0 then
EnConjunto = "C"
End if
End if
End if
Response.Write "El número " & Numero & " se encuentra en el conjunto " & EnConjunto
%>
saludos |