Custom Type Persistence

Blitz3D Forums/Blitz3D Beginners Area/Custom Type Persistence

Mikorians(Posted 2014) [#1]
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!


Midimaster(Posted 2014) [#2]
send some code...


Matty(Posted 2014) [#3]
Maybe you've defined it as an integer and not a string...though without code difficult to tell.


Mikorians(Posted 2014) [#4]
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