Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/10/2004, 17:22
pelikulero
 
Fecha de Ingreso: julio-2004
Ubicación: Gómez Palacio, Durango, México
Mensajes: 132
Antigüedad: 19 años, 9 meses
Puntos: 0
Ahi te va algo, ojala y te sirve....

//public string Substring(int startIndex,int length)


String sCad = "Me gusta la cerveza";
int iNoCaracteres = sCad.Length();

for( int iI = 0 ; iI < iNoCaracteres ; iI ++)
{
if( String.Compare(sCad.SubString(iI,7),"cerveza") == 0 )
sMensaje = "cadena encontrada";

}