Jalz Posted November 6, 2014 Posted November 6, 2014 Hey all, Need some advice please. I have three fields in a flat file called, Mobile, Tel, Mail, and I would like to store the values of these in a multi-dimensional variable along with their type (Mobile, Tel, Mail). Is this possible with FileMaker 13. I need to store them in a multidimensional variable so I can process them further in other scripts. $contact[type][1] = Mobile $contact[data][1] = 0123456789 Thanks Jalz
Kris M Posted November 6, 2014 Posted November 6, 2014 Investigate passing multiple paramaters, name value pairs, and dictionary techniques. Their are many ways to skin this cat so research the methods and choose the one that works for you. http://sixfriedrice.com/wp/filemaker-dictionary-functions/ http://sixfriedrice.com/wp/passing-multiple-parameters-to-scripts-advanced/ https://www.geistinteractive.com/2011/07/18/passing-multiple-parameters/ http://www.modularfilemaker.org/module/parameters/ http://www.goya.com.au/blog/using-name-value-pairs-parameters-and-storing-data 1
Fitch Posted November 6, 2014 Posted November 6, 2014 There's not really a practical difference in FileMaker to just instantiate separate variables, e.g.: $contactType[1] = Mobile $contactData[1] = 0123456789 That said, if you want to use those variables in other scripts, you'll need to either create them as global variables, or use one of the techniques Kris linked. Many of us avoid using global variables for temporary storage because you have to be vigilant about cleaning up afterwards. 1
Recommended Posts
This topic is 3669 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