2017-02-08 1 views
-1

어떻게 할 수조건 및 메시지 버튼

if x<-1 and x>1 Then 

[if that condition is not met, I want a Message saying "Hey, you need a number 
between -1 and 1.] 

End if 

한 I? x는 범위를 벗어날 때 그냥 팝업 메시지 상자가 필요한 경우

+2

이 조건을 만족하지 않습니다. – Fabio

+0

@Fabio 실제로 메시지를 표시하는 조건은'x <-1 OrElse x> 1'입니다. – mathiasfk

+0

@Katerine Arias 문제가 무엇인지 구체적으로 설명해주십시오. – mathiasfk

답변

1

다음이 시도 : -

If x < -1 OrElse x > 1 Then 
    MessageBox.Show("Hey, you need a number in the range of -1 and 1") 
End If 
관련 문제