locked
How do i delete this post RRS feed

  • Question

  • Hello

    I am just learning about the if..Then...Else statements,  the following example shows both the multipul-and single-line forms of the if..then..else statements.

    But how would i try this out in a new windows form application


    Dim number, digits As Integer
    Dim myString As String
    number = 53
    If number < 10 Then
        digits = 1
    ElseIf number < 100 Then
        digits = 2
    Else
        digits = 3
    End If
    If digits = 1 Then myString = "One" Else myString = "More than one"

    I am not sure where i would place the "MsgBox" so i could try this out, and practice changing the value's.

    thankyou for all of your replys Chester/uk
    • Edited by carl101 Sunday, February 22, 2009 12:19 AM to change "subject"
    Thursday, February 19, 2009 10:24 PM

Answers