Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bad language filter
Message
De
04/01/2006 12:28:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01083199
Message ID:
01083203
Vues:
15
>Does anyone have some code to filter bad language that they'd like to share? Something to check a field or data to be input into a field. Don't want to reinvent the wheel if someone has something that works well.
>
>Regards,
>
>E.R. Gilmore

I don't have specific code, but it doesn't seem very complicated: Have a table with the forbidden words. In the field you want to check, loop through each of the forbidden words, comparing with the "$" operator.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform