Jump to content

setting up a find script


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

Recommended Posts

  • Newbies

OK, here's what I have to do. We have a database of email addresses. I need to set up a script that will do two things: when a find is performed and a match is found, give a message "Sorry-that ID is currently in use" and start new find. If no match is found, give a message "Congratulations-that ID is available".

Is this even possible? Any help would be greatly appreciated!

Link to comment
Share on other sites

Your script should look something like this:

Set Error Capture [On]

Loop

Go to Field (your input field)

Enter Find Mode [Pause]

Perform Find [Replace Found Set]

Exit Loop If ["Status(CurrentFoundCount]=0"]

Show Message ["Not available message"]-- setup option to continue or quit

If Status(CurrentMessageChoice) = (quit option)

[Perform some other action]

Exit Script

EndIf

EndLoop

Show Message ["Congarts message"

[Perform next action, ie New Record]

Link to comment
Share on other sites

This topic is 7391 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.