Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Verify email address
Message
De
01/05/2012 04:28:42
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
01/05/2012 03:57:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01542899
Message ID:
01542966
Vues:
58
>>
>>Function ValidEmail
>>   Lparameters lcMail
>>   Local ox, llReturn
>>   If Pcount() > 0 And Vartype(lcMail) = [C]
>>      ox = Createobject([VBScript.RegExp])
>>      ox.Pattern = "^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$"
>>      ox.IgnoreCase = .T.
>>      ox.Global = .F.
>>      llReturn = ox.Test(lcMail)
>>      Release ox
>>      ox = .Null.
>>   Endif
>>Return llReturn
>>
>>
>
>Dangerous code. If ox happens to be a private variable on entry of the function, it will set its value to null

The snippet above ain't big enough for both of Release and =Null.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform