Custom Type Persistence
Blitz3D Forums/Blitz3D Beginners Area/Custom Type Persistence
| ||
A global type variable array: I am setting the right type variable in my function Because it had the correct text value in it during debuglog. When we leave the function, my other flag is now back to 0. What am I doing wrong? Yes, I have lots of nesting, but NO recursion that I'm aware of. But I did have to compare the variable before calling the function. If the parent function keeps the var from changing then what good is any of it? Help! |
| ||
send some code... |
| ||
Maybe you've defined it as an integer and not a string...though without code difficult to tell. |
| ||
Sorry. There was a different problem with my code, and I solved that one. But this problem seems to crop up occasionally and I merely wondered why the confusion with variables that are supposed to be global. Perhaps if YOU guys sent me some examples of why this might fail and what you do to fix it. It's just a type array. I've sometimes had to modify functions to return a value I wanted to change so the parent function could apply it yet again... Persistence |