Announcement

Collapse
No announcement yet.

Turning Sound On/Off

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mel Bishop
    replied
    You might try something like this:

    If X = Y then sound 800,5

    or
    If X = Y then
    sound 800,5
    another statement
    another statment
    end if


    ------------------

    Leave a comment:


  • Eric Pearson
    replied
    Try adding this line...

    Code:
    SHARED B
    ...to your SetSound function, and all of the subs and functions where you need the B value to be "visible".

    -- Eric

    ------------------
    Perfect Sync: Perfect Sync Development Tools
    Email: mailto:[email protected][email protected]</A>

    Leave a comment:


  • Keith E. Black
    started a topic Turning Sound On/Off

    Turning Sound On/Off

    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
Working...
X