• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 260
  • Last Modified:

VB.NET Check if result is 50,100,150 etc.

Hi there,

I need to check if result is sum of 50's

Thanks
0
mropenmind
Asked:
mropenmind
1 Solution
 
systanCommented:
        Dim result As Integer = Convert.ToUInt16(TextBox1.Text)
        If (result Mod 50) Then
            Me.Text = "bad"
        Else
            Me.Text = "good"
        End If

Open in new window

0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now