ElseIf question
-
This aint working, any ideas: If intScoreTop < 5 Then My.Computer.Audio.Play(My.Resources.Sounds.sndMainPopupLow, AudioPlayMode.Background) elseif intScoreTop = 10 Then My.Computer.Audio.Play(My.Resources.Sounds.sndMainPopupHigh, AudioPlayMode.Background) _ Else My.Computer.Audio.Play(My.Resources.Sounds.sndMainPopupMid, AudioPlayMode.Background) It is saying the elseif must be proceeded by an IF, but it is!!!?
-
This aint working, any ideas: If intScoreTop < 5 Then My.Computer.Audio.Play(My.Resources.Sounds.sndMainPopupLow, AudioPlayMode.Background) elseif intScoreTop = 10 Then My.Computer.Audio.Play(My.Resources.Sounds.sndMainPopupHigh, AudioPlayMode.Background) _ Else My.Computer.Audio.Play(My.Resources.Sounds.sndMainPopupMid, AudioPlayMode.Background) It is saying the elseif must be proceeded by an IF, but it is!!!?
VB.NET sucks. I think if you but the statement all on one line, you don't need endif, nor can you use elseif if intscoretop < 5 then blah elseif blah else blah endif
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 )
-
VB.NET sucks. I think if you but the statement all on one line, you don't need endif, nor can you use elseif if intscoretop < 5 then blah elseif blah else blah endif
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 )
Sorted cheers, didnt realise they had to go on seperate lines, i was trying to concatenate them!