1 2 3 4 5 6 7 8 9 10 11 12 13
| Private Function isole_nom(ByVal Recherche_AVI)
If Len(Recherche_AVI.Text) = 0 Then isole_nom = "" : Exit Function
For isole_carac = Len(Recherche_AVI.Text) To 1 Step -1
If Mid(Recherche_AVI.Text, isole_carac, 1) = "\" Then isole_nom = Mid(Recherche_AVI.Text, isole_carac + 4) : Exit For
Next
If Len(isole_nom) = 0 Then Exit Function
For isole_carac = Len(isole_nom) To 1 Step -1 : Exit For
If Mid(isole_nom, isole_carac, 1) = "_" Then isole_nom = Left(isole_nom, isole_carac + 1) : Exit For
Next
End Function |
Partager