Globally Accessible Array: HOW?
-
The naming space seems globally aware, won't let me name something the same thing, regardless of where it is.
So is it possible to access an Array inside another object from a third party?
@Deeeds Arrays are a bunch of text, as you may know. If you want a globally accessible array, store the array in an attribute on an object or something as text, then any time you modify the array or get information from it, always refer to that attribute.
-
@Deeeds Arrays are a bunch of text, as you may know. If you want a globally accessible array, store the array in an attribute on an object or something as text, then any time you modify the array or get information from it, always refer to that attribute.
@Aidan-Oxley I'll leave alone the fact that arrays aren't just a bunch of text... for the moment.
And try to discover what you're saying in the rest.
What on earth does the rest of what you're saying mean?
Store an array in an attribute, got it.
"or something as text"... you've lost me.
How do I refer to that array as an attribute on something else?
Does this "just work"?
-
@Deeeds Arrays are a bunch of text, as you may know. If you want a globally accessible array, store the array in an attribute on an object or something as text, then any time you modify the array or get information from it, always refer to that attribute.
-
@Aidan-Oxley I've tried this. Definitely not something in the "it just works" category. I'm not getting the array when getting the attribute value from the object that has the array set to an attribute.
@Aidan-Oxley
It's all about the delays.
Wait before setting (for arrays to come into being)
Wait longer before getting attribute value of array (so there's time for it to be set)
I'm going to ponder ways to avoid this degree of complexity for non-programmers. I'm sure I'll come up with an elegant solution.
Perhaps it's been solved before ;)
Many times.
-
@Aidan-Oxley I've tried this. Definitely not something in the "it just works" category. I'm not getting the array when getting the attribute value from the object that has the array set to an attribute.
@Deeeds I store an array in an object’s attribute, and it works fine,
If you’re on iOS 11:
Also be careful hard coding arrays in iOS 11, in a lot of fields, iOS will replace the regular exact same two quotes with one that symbolises the start and end quote, which causes the array to not work.
But, copying and pasting exact quotes work fine, which is what I do.In HyperPad’s input box behaviour field they do not get replaced, so I type in there and copy and paste.
-
@Deeeds I store an array in an object’s attribute, and it works fine,
If you’re on iOS 11:
Also be careful hard coding arrays in iOS 11, in a lot of fields, iOS will replace the regular exact same two quotes with one that symbolises the start and end quote, which causes the array to not work.
But, copying and pasting exact quotes work fine, which is what I do.In HyperPad’s input box behaviour field they do not get replaced, so I type in there and copy and paste.
-
@Aidan-Oxley I've tried this. Definitely not something in the "it just works" category. I'm not getting the array when getting the attribute value from the object that has the array set to an attribute.
@Deeeds said in Globally Accessible Array: HOW?:
@Aidan-Oxley I've tried this. Definitely not something in the "it just works" category. I'm not getting the array when getting the attribute value from the object that has the array set to an attribute.
Maybe I was thinking something else?
-
@Aidan-Oxley I've tried this. Definitely not something in the "it just works" category. I'm not getting the array when getting the attribute value from the object that has the array set to an attribute.
@Deeeds, @Aidan-Oxley‘s way would work great.
-
@Deeeds, @Aidan-Oxley‘s way would work great.
@iTap-Development see questions above...
-
@iTap-Development see questions above...
@Deeeds An array is seriously just a bunch of text. For example, an array storing the values 1 and 2 looks like this: [“1”,”2”]. I’ll make a test project for ya.
-
@iTap-Development see questions above...
@Deeeds Here you go: http://bit.ly/2yVvKfT
-
@Deeeds An array is seriously just a bunch of text. For example, an array storing the values 1 and 2 looks like this: [“1”,”2”]. I’ll make a test project for ya.
-
@Deeeds Here you go: http://bit.ly/2yVvKfT
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login