This site requires JavaScript, please enable it in your browser!
Greenfoot back
erdelf
erdelf wrote ...

2012/12/6

Array in userinfo?

erdelf erdelf

2012/12/6

#
Is there a way to save an array in userinfo?
danpost danpost

2012/12/6

#
If the data that needs to be stored can fit in the limited space available in UserInfo, then yes; although it cannot be in an array form (except 'char' array -- String). What kind of data are you wanting to store? that is, what type of data does the array you wish to save carry? EDIT: Oh, and how big is the array,, also?
erdelf erdelf

2012/12/6

#
I want to store a ten element string. A char array with ten elements would work?
danpost danpost

2012/12/6

#
You have available to you 5 Strings of 50 characters each. You can store your 'char' array as a String in one of those. You would still have 200 characters of String space available; plus the other 40 characters of the String you just saved 10 characters in, if you concatenate to save and use substrings to split it back up.
You need to login to post a reply.