sijmons Posted January 3, 2007 Posted January 3, 2007 I'm trying to pass on several fields into a script parameter to be picked up in another file. One of the fields may contain hard returns which I would like to keep in, so I use & "^" & to delimit the fields. This induces the problem that my usual method: GetValue (Get ScriptParameter) ; 2 ) can no longer be used and I am puzzled how to parse out my fields using the ^ delimiter. So far all my attempts fail to work and I am calling the forum for help. ... and enjoy 2007 !
comment Posted January 3, 2007 Posted January 3, 2007 I am not sure this is the best method to pass multiple values in a script parameter*, but you could use a calculation like this to extract the n-th value from a string delimited by "^": Let ( [ text = "^" & string & "^" ; start = Position ( text ; "^" ; 1 ; n ) + 1 ; end = Position ( text ; "^" ; 1 ; n + 1 ) ] ; Middle ( text ; start ; end - start ) ) --- (*) see here
mr_vodka Posted January 3, 2007 Posted January 3, 2007 You may want to check out this technique for passing multiple parameters that is on FileMaker Magazine's Website
sijmons Posted January 3, 2007 Author Posted January 3, 2007 Thank you both for this help. I had the example file downloaded several months ago but just completely forgot about it. ... time to built a FAQ database for myself, what?
Søren Dyhr Posted January 4, 2007 Posted January 4, 2007 I'm trying to pass on several fields into a script parameter But chances are that referential integrity is buried underneath heaps of nifty scripting. If a lot needs to get copied ...does it talk in favour for getting broken up in relational structure! --sd
sijmons Posted January 4, 2007 Author Posted January 4, 2007 You are right Soren, but this is from a customized file to a standard solution file and I like to keep that communication as generic as possible to be able to use the standard solution with multiple clients in an uncompromised way.
T-Square Posted January 4, 2007 Posted January 4, 2007 There were a couple of Custom functions (one my own) for parsing script parameters. Mine used a "var1=value1; var2=value2" syntax that you could modify to your own characters.
Recommended Posts
This topic is 6535 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