Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ Suggestions ➜ Array suggestion

Array suggestion

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Poromenos   Greece  (1,037 posts)  Bio
Date Wed 12 May 2004 10:41 PM (UTC)
Message
Is there a way for MC arrays to have multiple values per key? I.e. an optional parameter that would be the key number to set the value to? MC arrays are very useful because they save automatically and all but I tend to use VB arrays more because I of the multiple dimensions. Using Split and Join every time wouldn't be very practical either...

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
Top

Posted by Poromenos   Greece  (1,037 posts)  Bio
Date Reply #1 on Wed 12 May 2004 10:43 PM (UTC)
Message
Actually now that I think of it, that would make importing/exporting a pain, so I'll think of something else.

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #2 on Wed 12 May 2004 10:46 PM (UTC)
Message
Edit grasshopper, Edit.

Its a wonderful thing.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #3 on Thu 13 May 2004 06:21 AM (UTC)
Message
Split and join would certainly be one approach. However another is to have an array within an array. That is, export an array (ie. the multiple values you talk of) to be the "value" for the other array. That way one key can have multiple key/value pairs belonging to it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


12,339 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.