syntax error
-
Why is this bring up a syntax error (the error it states is on the open brackets): --- If intScoreTop < 5 then (My.Resources.Sounds.sndMainPopupLow, AudioPlayMode.Background) --- All i am trying to do is if the integer intScoreTop has a value of less than 5 then play a sound file!
-
Why is this bring up a syntax error (the error it states is on the open brackets): --- If intScoreTop < 5 then (My.Resources.Sounds.sndMainPopupLow, AudioPlayMode.Background) --- All i am trying to do is if the integer intScoreTop has a value of less than 5 then play a sound file!
Because you're not calling any method that plays a sound, it looks like the method name is what's missing, and you're just providing the params to the method which you're not specifying.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Because you're not calling any method that plays a sound, it looks like the method name is what's missing, and you're just providing the params to the method which you're not specifying.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Ha ha, me being dumb, needed to call the my.computer event. Cheers