@Contains en LS

@Contains en LS

Messagepar Michael DELIQUE » 23 Août 2006 à 09:33

Code : Tout sélectionner
Public Function Contains_LS (Byval wSource As String, Byval wTarget As String) As Integer
   
   On Error Goto ErreurHandle
   
   If wSource = "" Then
      Contains_LS = False
      Exit Function
   End If
   
   If wTarget = "" Then
      Contains_LS = False
      Exit Function
   End If
   
   If Instr(wSource,wTarget) = 0 Then
      Contains_LS = False
   Else
      Contains_LS= True
   End If
   
   Exit Function
ErreurHandle:
   Msgbox "("+Cstr(Getthreadinfo (1))+")"+Chr(10)+"Erreur " + Str(Err) + " : "+Chr(10) + Cstr(Error)+". "+Chr(10)+"Ligne N° "+Cstr(Erl),16," ERREUR !"
   Contains_LS=  False
   Exit Function
End Function
Cordialement

Michael (SMS-Phobique)
----------------------------
"La théorie, c'est quand on sait tout et que rien ne fonctionne. La pratique, c'est quand tout fonctionne et que personne ne sait pourquoi."
Albert EINSTEIN
Avatar de l’utilisateur
Michael DELIQUE
Administrateur
Administrateur
 
Message(s) : 12183
Inscrit(e) le : 16 Déc 2004 à 10:36
Localisation : Paris/Cergy

Retour vers Chaines de caractères