This looks as a trivial question but I do not understand what is going on.
Line
Alert.PlaySound("Yea"); //(or any other .wav file)
works when called directly from main().
The same line does not work when called from an if {} statement:
if (nResult == 1) {
debugPrintln("nResult = " + nResult);
Alert.PlaySound("Yea");
}
The debugPrintln statement is there to verify that the if {} condition is true.
Thanks
Line
Alert.PlaySound("Yea"); //(or any other .wav file)
works when called directly from main().
The same line does not work when called from an if {} statement:
if (nResult == 1) {
debugPrintln("nResult = " + nResult);
Alert.PlaySound("Yea");
}
The debugPrintln statement is there to verify that the if {} condition is true.
Thanks
Comment