Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Generate Random Records, So Confusing ...

Featured Replies

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.

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

  • Author

Thank you very much. But do I have to have two fields set global? Cuz most of my fields need to be in text form.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.