Let's say you have a contacts table with contact information. And for instance you want to search for all contacts from a certain state.
Then first of all you will need a field where you can enter the state you want to search for.
Let's call that "g_search_State" It should be a text field set to global storage in the field settings.
Then you can create the following script: (that you can attach to a button)
Enter Find Mode [Uncheck Pause]
Set Field [ Contacts::State ; g_Search_State ]
Set Error Capture [On]
Sort Records (if needed)
The Set Field step is a tricky one. Because it requires two values. First of all you need to determine in which field you are going to set a value. And then secondly you need to determine the value that needs to be set. In this case that's the value that's in the g_Search_State field.
Then if you want you can add an If statement that checks if the g_Search_State field has a value in it or not. etc.
Let us know if you run into any problems.
In your scripts you have the setp Perform Find/Replace where you should have the step Perform Find. See the link S Chamblee posted for more on how to script it as there are other details missing from both scripts.