Newbies Nils van de Loo Posted July 7, 2004 Newbies Posted July 7, 2004 Hello all Can somebody help me to make a script that removes numbers form a word. I have a database with news articles and a field that contends the news category. The problem is that add the category word there is number. For example:Spo12 ski127 wee89 There is no pattern in the numbers some times there are 2 numbers and than it have 3 or 4 numbers. So is it possible to make a script that deletes the numbers for the words. Configuration: Filemaker 7.0 Macos X 10.3 Suggestions or help would be greatly appreciated. Thanks, Nils
DanBrill Posted July 7, 2004 Posted July 7, 2004 Use the substitute function and substitute "" for 0, "" for 1, ... "" for 9. That should do it.
MoonShadow Posted July 7, 2004 Posted July 7, 2004 You can also use Filter(yourfield; "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ") Even though it appears a bit longer, I think it is more efficient than Substitute(); even though you no longer need to nest Substitute() in 7. Filter is in vs. 7 only.
Recommended Posts
This topic is 7514 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now