Retour sommaire : Syntaxe Visual Basic
Libelle = "abc"
Libelle &= " suite"
libelle = If(Teinte1.Length > 0, Teinte1 ,"Aucune teinte")
if chaine.length = 0 Then
...
end if
' ou bien
if string.isnullorwhitespace( chaine ) then
...
end if
if chaine.StartsWith("ABC") Then
if chaine.endsWith("X") then
LEFT (chaine, 3)
' pos_debut = 1 pour le premier caractère
Dim sousChaine As String = Mid( Chaine, pos_debut )
Dim sousChaine As String = Mid( Chaine, pos_debut, nb_car)
' P**our le premier caractère index_debut=0**
' **Renvoi -1 si pas trouvé**
PosParentheseOuvrante = ChaineTeintes.indexOf("(", index_debut )