Reference Variables in Functions
Blitz3D Forums/Blitz3D Programming/Reference Variables in Functions
| ||
Sorry for asking, i know i have seen this in somewhere, but can't find it now. Can i pass a variable to a function so when the funcion changes the variable the original variable is modified? how? Thanks ;) |
| ||
No. You can however adjust Type fields, and Blitz array elements (thats arrays that use [] brackets). |
| ||
If you declare the variable global then you can do this ..global MyVar# MyVar = DoSomit( MyVar ) function DoSomit#( V# ) V = V + 10 return V end function |
| ||
Yeah, i knew both solutions. I think i have dreamed it then. Thanks Anyway! |