George Swisher Posted July 11, 2005 Posted July 11, 2005 This seems like a simple thing but I can not figure out how to limit users from entering returns in fields. I have some applescripts written that do not work when there are returns in a field. How can I either limit users from entering them or how can I create a script to remove them from a field when exporting?
stanley Posted July 11, 2005 Posted July 11, 2005 George: You could parse for carriage returns when passing your data to the AppleScript. -Stanley
Ted S Posted July 11, 2005 Posted July 11, 2005 Make your field validate by calculation: PatternCount ( Field_Name; "
BobWeaver Posted July 12, 2005 Posted July 12, 2005 The other option is to simply let the user enter them, and then delete them using a calculated field with the formula: StoredField= Substitute(InputField,"
George Swisher Posted July 12, 2005 Author Posted July 12, 2005 wow, a lot of options. Thanks for all the info. Probably would be best to remove them when exporting but I still want to keep the data seperate. Some users type in a notes field with returns to seperate each item. If I just remove the returns, the information will run together. Is there a better way to replace the returns with another character or does someone have a better suggestion? This is a VCF card export function I built so there are a lot of fields and may be too time consuming to create a calculated field for each removing the return. I like the val calc that will not allow the user to enter a return but also want to protect the export to remove the return in case something is missed. Stanley, How can I do this on the export in apple script? Keep in mind that I already have an appleScript to export a calc field formatted for a VCF card. I am guessing that I will just add this part before the export function. thanks all!
Recommended Posts
This topic is 7142 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