Boto Posted May 25, 2004 Posted May 25, 2004 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
Ender Posted May 25, 2004 Posted May 25, 2004 Lookup the Evaluate function in the FM7 application help. It shows an example of using the Evaluate function to parse multiple script parameters.
Boto Posted May 25, 2004 Author Posted May 25, 2004 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.
Reed Posted May 25, 2004 Posted May 25, 2004 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.
Boto Posted May 25, 2004 Author Posted May 25, 2004 can you maybe provide an example? Still, this is also very helpfull... i'll go search their site! greetz
Kurt Knippel Posted May 25, 2004 Posted May 25, 2004 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.
Reed Posted May 25, 2004 Posted May 25, 2004 Here is a (useless) example.... but it illustrates what I'm talking about. param.fp7.zip
Ken Newell Posted May 25, 2004 Posted May 25, 2004 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.
cellmaker Posted May 28, 2004 Posted May 28, 2004 Reed - That was a pithy and very helpful "useless" example. You answered about 14 of my questions simultaneously. Many thanks.
Recommended Posts
This topic is 7487 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