global b$ b$ = "good" print right$(b$, four()) end function four() b$ = "bad" four = 4 end function
|
|
global Alpha, Beta Alpha = 1.2 Beta = 3.4 print square(Alpha), square(Beta) end function square(n) square = n * n end function
global b$ b$ = "good" print right$(b$, four()) b$ = "good" print right$(nochange$(b$), four()) end function four() b$ = "bad" four = 4 end function function nochange$(s$) nochange$= s$ end function
|
|
|
|
b$ = "good" print right$(b$, four(b$)) end function four(byref a$) a$ = "bad" four = 4 end function
|
|