I am trying to write a code to turn sound on and off at will.
This statement "sound 400,b" occurs 25 places in my program,where
"b" can be 0 or 2.
Example:
Sub SetSound
Input "Do you want sound? (Y/N)";an$
if instr(an$, any "Yy") then b = 2
if instr(an$, any "Nn") then b = 0
end sub
The b = 2 will not carry through in every instance where the statement "sound 400,b" occurs in other subs. Why?
Is there any easier way to do this? (I'm not familiar with assembly code language).
Thanks,
Keith
This statement "sound 400,b" occurs 25 places in my program,where
"b" can be 0 or 2.
Example:
Sub SetSound
Input "Do you want sound? (Y/N)";an$
if instr(an$, any "Yy") then b = 2
if instr(an$, any "Nn") then b = 0
end sub
The b = 2 will not carry through in every instance where the statement "sound 400,b" occurs in other subs. Why?
Is there any easier way to do this? (I'm not familiar with assembly code language).
Thanks,
Keith
Comment