MatthewS Posted March 29, 2004 Share Posted March 29, 2004 I am trying to create a script that will allow users to jump forward ten records within a found set. Is there anyway of doing this? I have buttons for go to record next,last, first etc but would like the option to jump forward and back 10 records within a found set. Version: Developer v6 Platform: Windows 2000 Link to comment Share on other sites More sharing options...
Reed Posted March 29, 2004 Share Posted March 29, 2004 How about this? Freeze Window Set Field (gLoop, 0) Loop Go to Record (Next, Exit After Last) Set Field (gLoop, gLoop +1) Exit Loop If (gLoop=10) End Loop Link to comment Share on other sites More sharing options...
Ugo DI LUCA Posted March 29, 2004 Share Posted March 29, 2004 Or use a global gTarget (num) SetField[gTarget, Case(Status(CurrentRecordNumber)>=10,Status(CurrentRecordNumber)-10,1)] GoToRecord[byFieldValue, gTarget] Version: v6.x Platform: Mac OS 9 Link to comment Share on other sites More sharing options...
-Queue- Posted March 29, 2004 Share Posted March 29, 2004 Hmm. I'm thinking Ugo meant to put +10 not -10. Set Field [gTarget, Case(Status(CurrentRecordNumber) + 10 < Status(CurrentFoundCount), Status(CurrentRecordNumber) + 10, Status(CurrentFoundCount))] Go to Record/Request/Page [by Field Value, gTarget] Link to comment Share on other sites More sharing options...
Ugo DI LUCA Posted March 29, 2004 Share Posted March 29, 2004 Yeah. I always had problems with my Right and Left. This is same with Backward and Forward, which is probably why I never succeeded in earing a whole tape. Though as Matthew asked to jump Backward AND Forward, he now has a complete answer. Version: v6.x Platform: Mac OS 9 Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 7304 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