yaron Posted August 29, 2006 Posted August 29, 2006 Hi guys, and good morning. I have a small question hopefully Ill get the answer. Id like to create a button for "Next record" but I want it to take me not to the exact next record but to a record a head where a certain field's value is > 0. I tried several options and couldnt make it work . thanks. Yaron.
John Mark Osborne Posted August 29, 2006 Posted August 29, 2006 You'll want to use a looping script something like this: Loop Go to Record/Request/Page [Next, exit after last] Exit Loop If [MYTABLE::CertainField > 0] End Loop
yaron Posted August 29, 2006 Author Posted August 29, 2006 Thanks, I just figured now how to write this script. How do I attach this script to a button, meaning how do I add it to the list of scripts so I can choose it on "Button Setup" ?
John Mark Osborne Posted August 30, 2006 Posted August 30, 2006 Create the script in ScriptMaker under the Scripts menu. Then, you will be able to choose this script when creating a button if you select the Perform Script step from the Button Definition dialog.
Recommended Posts
This topic is 6661 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