Steven Cappiello Posted October 28, 2005 Posted October 28, 2005 If I have a script that needs to address field1, field2, field3, field4 (all numbered sequentially) can I have the script act on those fields using a scriptparamter ? so.. to address the first field, i would set scriptparameter=1 then in the script: if ( table::field&get(scriptparameter) = 4; "") if not that way, is there some way to achieve this ? also.. could I address repetitions of a repeating field with a script parameter if(table::repeatingfield[get(scriptparatmer)])=4 ; "" ??
SlimJim Posted October 28, 2005 Posted October 28, 2005 You could do the addressing by using the GetField function. For example, using a variable to carry the field name. SetVariable[$$fieldname;Value;"table::field" & Get(ScriptParameter)] If [GetField($$fieldname) = 4;""] will, I think do the trick. Regarding repeating fields you simply put the formula into the repetition brackets [ ] in the calculation dialog box. FMP8A will happily accept this - so long as it is a valid calculation.
Recommended Posts
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