oakbridge Posted August 4, 2008 Posted August 4, 2008 (edited) I'm trying to use the Filter in a custom function to only allow alpha numeric characters along with the space character. It works fine for all of the alpha numeric characters but it is still filtering out the spaces (which I want to keep). This is what I am using: Filter ( fp_input ; "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwzyz0123456789., -" ) Is there something that I am missing? Edited August 4, 2008 by Guest
LaRetta Posted August 4, 2008 Posted August 4, 2008 (edited) I see no space in that string. Hmmm, I see: w zyz0 Is that where the space is? Because space DOES work within Filter(). Edited August 4, 2008 by Guest
oakbridge Posted August 4, 2008 Author Posted August 4, 2008 Hmm, the spot where you thought was a space was actually the letter X and x and the space was found after the -. I did a direct copy right from the custom functions window. I tried it again after modifying the data in the original field and sure enough the space worked. What I am doing is taking an existing system that I don't want to disturb and creating new fields that were calculation fields that called the custom function. I think my problem is solved, thank you.
oakbridge Posted August 5, 2008 Author Posted August 5, 2008 (edited) When I originally set up the custom function, I had missed including the space character in the filter. When I added it, it didn't seem to make a difference. However when I deleted the calculation field that was calling the custom function and recreated it, it worked fine. Strange but I am now working. Edited August 5, 2008 by Guest
LaRetta Posted August 5, 2008 Posted August 5, 2008 When I added it, it didn't seem to make a difference. I would suspect you had it set as an indexed calculation and, since the CF changed but no FIELDS within the calculation changed, your calculation didn't know the CF was changed and thus couldn't update. Well ... at least that's my story and I'm stickin' to it. :grad:
Recommended Posts
This topic is 6300 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