Advertisement
339r

أكبر من أصغر من صفر أو يساويه

Mar 20th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.37 KB | None | 0 0
  1. Try
  2.             Dim numb As Integer = TextBox1.Text ="نص"
  3.             If numb > 0 Then
  4.                 Label1.Text = "نص"
  5.             ElseIf numb < 0 Then
  6.                 Label1.Text = "سالب"
  7.             Else
  8.                 Label1.Text = "صفر"
  9.             End If
  10.         Catch ex As Exception
  11.             MsgBox("ذا عدد؟، متأكد؟")
  12.         End Try
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement