May 25, 200421 yr I need to pass 2 variables to a script, is this possible somehow... cause i seem to miss the function of defining custom variables in the scripting of FM7 (used to work with Access which allows this in the VB scripting/programming). Thx in advance
May 25, 200421 yr Lookup the Evaluate function in the FM7 application help. It shows an example of using the Evaluate function to parse multiple script parameters.
May 25, 200421 yr Author I read the example, but it uses two variables and i want to send 2 database attributes. So the values of offer::offerID and offer::carID have to be sent to an other lay-out... i can't get it working.
May 25, 200421 yr I have seen another technique to accomplish this at filemakermagazine.com.... Pass the parameters as a return-delimited list, and retrieve them using the middlevalues() function. This seems much more straightforward to me than the evaluate() technique in FM help.
May 25, 200421 yr Author can you maybe provide an example? Still, this is also very helpfull... i'll go search their site! greetz
May 25, 200421 yr Filemaker does NOT define what a "parameter" is, so you could pass anything, including a value list or a set of related data. In you simple example you could pass the following "parameter" - Sales | New Record Then you scripting could parse out the Sales part and the New Record part as 2 seperate parameters.
May 25, 200421 yr Here is a (useless) example.... but it illustrates what I'm talking about. param.fp7.zip
May 25, 200421 yr Check the tips & tricks section where I posted a sample file a few week back. It shows how to pass 3 vairables; in this case the RGB values.
May 28, 200421 yr Reed - That was a pithy and very helpful "useless" example. You answered about 14 of my questions simultaneously. Many thanks.
Create an account or sign in to comment