Jump to content

Click letter -- Find begins with


This topic is 7114 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi all,

I'm trying to create a clickable alphabet line such that clicking "A" will return all the company names that begin with "A", "B", "C" etc. What I can't figure out is how to perform such a search. According to the manual the =char* format does this but only for Japanese fields.

Surely there is another way. Or do I have to develop my own function that loops through all records and flag the ones that begin with "A" using a text function, then perform a find on the flag?

Thanks,

RandyS

Link to comment
Share on other sites

Just find for the letter. It assumes you are searching for words that begin with whatever you enter.

You could probably do this with 26 buttons using one script. Each button using the search letter as its script parameter. Then the script would look something like this:

Enter Find Mode

Set Field [ Company Name ; get(scriptparameter) ]

Perform Find

You may also want to capture the no records found error.

Link to comment
Share on other sites

Just find for the letter. It assumes you are searching for words that begin with whatever you enter.

Note that a find for "a" in Company Name would return "Apple Computer" and "Bee's Art Supply". If this is not desirable, then you would need to change the search a bit. Maybe there's a seach symbol that does a 'start with' kind of thing, but I don't know it. Short of that, I'd add a calc field CompanyStartLetter = left(Company Name; 1), and perform the search on it.

Link to comment
Share on other sites

This topic is 7114 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.