Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bad language filter
Message
From
04/01/2006 12:28:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01083199
Message ID:
01083203
Views:
14
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform