PDA

View Full Version : Empty strings turn into null


fschapachnik
10-21-2011, 12:39 PM
Hi. My program initializes a couple of variables to the empty string. When I save and reload the world they are getting null instead of empty. Is there a workaround or fix?

Thanks,
Fernando.

arty-fishL
10-21-2011, 01:18 PM
Create a new list of strings. Add an item to it, set the item's value to an empty string. This item wont change to null when you load the world. When the world starts have it set all strings that should be empty to the first item in the list of strings you just created.

fschapachnik
10-25-2011, 09:44 AM
Thanks, that worked!

arty-fishL
10-26-2011, 03:30 PM
Thanks, that worked!Great :D

David B
10-26-2011, 03:55 PM
Thanks! I too, have wanted to know how this was done for a long time, but I have always been too lazy to make a thread asking about it.