Chalkster Posted March 13, 2005 Author Posted March 13, 2005 I know this should be a simple one but my brain has frozen! I am trying to script a find to find records in a table where the field data is in multiples of 3 letters (not counting spaces)... so AAA BBB CCC or AAABBBCCC would be fine. But AA BBBCCC would not be returned. I could do it with @@@ @@@@@@ but i know ther must be a way to check number of letters and see if it is a multiple of 3... can anyone tell me what I am missing here?
Chalkster Posted March 13, 2005 Posted March 13, 2005 I know this should be a simple one but my brain has frozen! I am trying to script a find to find records in a table where the field data is in multiples of 3 letters (not counting spaces)... so AAA BBB CCC or AAABBBCCC would be fine. But AA BBBCCC would not be returned. I could do it with @@@ @@@@@@ but i know ther must be a way to check number of letters and see if it is a multiple of 3... can anyone tell me what I am missing here?
Chalkster Posted March 13, 2005 Author Posted March 13, 2005 I know this should be a simple one but my brain has frozen! I am trying to script a find to find records in a table where the field data is in multiples of 3 letters (not counting spaces)... so AAA BBB CCC or AAABBBCCC would be fine. But AA BBBCCC would not be returned. I could do it with @@@ @@@@@@ but i know ther must be a way to check number of letters and see if it is a multiple of 3... can anyone tell me what I am missing here?
Ugo DI LUCA Posted March 13, 2005 Posted March 13, 2005 Hi, You'd better use a Marking calculation that would result true or false according to the string. Then do a search for 1 if True or 0 if False. Should this be testing the alphabet order too and would ABCABCABC turn true as well ?
Ugo DI LUCA Posted March 13, 2005 Posted March 13, 2005 Hi, You'd better use a Marking calculation that would result true or false according to the string. Then do a search for 1 if True or 0 if False. Should this be testing the alphabet order too and would ABCABCABC turn true as well ?
Ugo DI LUCA Posted March 13, 2005 Posted March 13, 2005 Hi, You'd better use a Marking calculation that would result true or false according to the string. Then do a search for 1 if True or 0 if False. Should this be testing the alphabet order too and would ABCABCABC turn true as well ?
Chalkster Posted March 13, 2005 Author Posted March 13, 2005 order of letters doesnt matter... its actually three letter codes for airports and cities so it could be NYC LHR MIA ..... etc etc ut i need to be able to spot any that are not complete groups
Chalkster Posted March 13, 2005 Author Posted March 13, 2005 order of letters doesnt matter... its actually three letter codes for airports and cities so it could be NYC LHR MIA ..... etc etc ut i need to be able to spot any that are not complete groups
Chalkster Posted March 13, 2005 Author Posted March 13, 2005 order of letters doesnt matter... its actually three letter codes for airports and cities so it could be NYC LHR MIA ..... etc etc ut i need to be able to spot any that are not complete groups
Recommended Posts
This topic is 7252 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