November 6, 201411 yr 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
November 6, 201411 yr 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
November 6, 201411 yr 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.
Create an account or sign in to comment