sburech Posted December 15, 2009 Posted December 15, 2009 I have a layout with five number fields. I would like to have appear in each field in a record of that layout a random number from 1 to 50, making certain that no field in the record has a repeat of a number from another field in that record. In other words, each record contains 5 unique numbers, anywhere from 1 to and including 50. Can anyone assist me with a formula that accomplishes this task?
sburech Posted December 15, 2009 Author Posted December 15, 2009 Please excuse me. I am very new to Filemaker and am a bit confused by your suggestion. I downloaded the file you sent and pushed the Insert Values button but nothing happened to the fields. I did notice a change in the cursor's shape, however. Am I to add something to the script you created? Am I to insert something in the fields? Perhaps I should have waited longer for the loop in the script to work? Thanks for your help.
Raybaudi Posted December 15, 2009 Posted December 15, 2009 Did you delete the record ? If yes, create a new record before pushing the button.
comment Posted December 15, 2009 Posted December 15, 2009 Daniele's file requires version 8.5 or higher. It shouldn't be too hard to adapt it for version 7, but - could you first explain the purpose behind this?
Raybaudi Posted December 15, 2009 Posted December 15, 2009 Daniele's file requires version 8.5 or higher. Ohhh, sure ! I didn't see your FM version !
Raybaudi Posted December 15, 2009 Posted December 15, 2009 It shouldn't be too hard to adapt it for version 7 I do not remember if there was the $var in version 7. If yes, it isn't too hard to adapt. sburech2.zip
sburech Posted December 16, 2009 Author Posted December 16, 2009 Thanks. That did it. And the purpose was "just for fun." I am trying to learn the program which was given to me. I am an amateur and intend to stay that way.
Raybaudi Posted December 16, 2009 Posted December 16, 2009 Nice use of a looping sub-script with a variable ScriptParameter.
Søren Dyhr Posted December 16, 2009 Posted December 16, 2009 From the school of Søren Dyhr. Yikes yesterday did I recieve a mail calling me a prominent member of the filemaker community and now this, is some sort of conspiracy going on here? Would you like the IBAN code to my bank account to donate appropriately or... ? --sd
comment Posted December 16, 2009 Posted December 16, 2009 is some sort of conspiracy going on here? Yes. I received the same mail and I have managed to trace it back to extra-terrestrial aliens trying to take over the planet Earth by planting bugs in database applications.
Recommended Posts
This topic is 5526 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