July 2, 200421 yr HI there! I have a portal with names I want to filter them via a classic method (mini buttons A,B,C,D,E,F.....) In version 6 of Fm I have to create a 26 buttons and 26 scripts set Field(Name_letter_key; "A")for the A button set Field(Name_letter_key; "B")for the B button etc Now in a Fm 7 With a new script parameter function I read that is possible to create only one script but with 26 different parameters (one per button) O.K fine.... but which is this parameter?: sorry but I don't understand the concept here... Any one please?
July 2, 200421 yr When you define the button you can define script parameters. For button A set the script parameter to A. For button B set the script parameter to B. and so on until for button Z set the script parameter to Z. In your scipt use the Get Script parameter function to get the value to use in the script.
July 12, 200421 yr I am now converting and want to do the same thing. I understand the passing of the paramter into the script and capturing it as well. I am placing the Get(ScriptParameter) = gLastNameLetter global field But then I want to execute a find on that letter as well.. e.g. "A" or "B" When I do the perform find script it asks for a field compared with a literal text such as "A"... what I want is LastNameLetter=glastNameLetter. Even if I do a relationship it is he same deadend. How do I match them up the LastNameLeter field with my gLastNameLetter field? or perhaps their is another way of doing it I am missing... This does seem simple, but I am not getting it fully. Thank you in advance for the help.
July 12, 200421 yr Instead of a straight Perform Find [Restore], use Enter Find Mode [ ] Set Field [yourfield, "==*" & Get(ScriptParameter)] Perform Find [ ]
Create an account or sign in to comment