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

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

Recommended Posts

Posted

I'm using FileMaker Pro 6 for my computer assignment - creating a test. After entering the data, I need to have a script that randomly select 15 records. But I don't even know how to use all the script functions. Please help me.

Posted

Here's how I'd do it; there are alternatives:

First, create a global field that returns a number ("gField").

Now, create a second global number field ("gCount")

Now, in the script:

Show All Records

SetField (gCount, 0)

Loop

SetField (gField, Round(Random * (Status(CurrentFoundCount) + 0.5)), 0)

GoToRecord/Request/Page "gField"]

... that is, by Field Value, and then select the gField

Omit Record

SetField (gCount, gCount + 1)

ExitLoopIf (gCount = 15)

End Loop

Show Omitted

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