you could also just use gosub and make your private variables something like PRIVATE_varname_PRIVATE, then just gosub and return, functions DO act strangly, although
some people insist they don`t (
see???...told you guys
), the trouble seems to be that it is an intermitant bug, sometimes you get it and sometimes the code will work fine (usualy while trying to demonstrate the problem
), I have had a function crash just because of a "wait 10" in the main loop, only reason I spotted it was the wait was added in and the code stopped working, removed it and it worked again, if the wait had already been there then I maybe would never have found what was causing it, just quirky compiler oddness if you ask me
, maybe it will be improved in (bugfix) P6.
Mentor.
PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, ATI radeon 9800 pro gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.