Reference Variables in Functions

Blitz3D Forums/Blitz3D Programming/Reference Variables in Functions

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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