Jump to content

Multidimensional variable


This topic is 2953 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

This topic is 2953 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.