Ver Mensaje Individual
  #36 (permalink)  
Antiguo 05/08/2008, 11:42
Avatar de moradazo
moradazo
 
Fecha de Ingreso: julio-2008
Ubicación: [email protected]
Mensajes: 355
Antigüedad: 16 años, 10 meses
Puntos: 2
Respuesta: Visual Basic 2005: Grabar y leer .ini

Que tal David.

Si tambien probe con And pero si leemos la condicion, una cadena no podria empezar por "x" o por "y", debe empezar por un elemento, en este caso asi:

Dim sLinea as string = ""
If Not sLinea.StartsWith("%" and "*" and "Hola" ) Then
TextLine = TextLine & sLinea & vbNewLine
End If

igual probe estas formas con el Or:

1- If Not sLinea.StartsWith("%" or "*") Then
2- If Not sLinea.StartsWith("%") or ("*") Then
3- If Not sLinea.StartsWith("%") or sLinea.StartsWith("*") Then
4- If Not sLinea.StartsWith("%") or Not sLinea.StartsWith("*") Then
5- If Not sLinea.StartsWith("%", "*") Then
6- If Not sLinea.StartsWith("%") Then
lineas
Else
If Not sLinea.StartsWith("*") Then
lineas
end If
end If

Pero no logro llegarle a mi busqueda, si es posible que me puedas sacar de duda o algun otro amigo, muchas gracias!