Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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]

Posted

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. wink.gif

Though as Matthew asked to jump Backward AND Forward, he now has a complete answer. cool.gif

Version: v6.x

Platform: Mac OS 9

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