Hello all Visual Basic 1.6 users.

Im gonna learn you a bit about the if-then, if-then-else, if-then-elseif and Select case structure.
Start off making a standard exe ducument.

If-Then structure

It is different versions of If-Then-Ekse structure.
If-Then is the easiest one.
With this structure, it checks if something is true. If its false, nothing happens.
In the example under, were using If-Then structure.

Code:
If optBig = True Then
      lblShow = UCase(txtWrite)
End If
If the user then click a button, and optBig is true, then the characters in lblShow gets LARGE.

If-Then-Else structure

This time it checks if its true or if its anything else than true.
In the example under, were using If-Then-Else structure.

Code:
If optBig = True Then
      lblShow = UCase(txtWrite)
Else
      lblShow = LCase(txtWrite)
End If
If the user then click a button, and optBig is true, then the characters in lblShow gets LARGE, but if its something else than true, it wil become in small characters.

If-Then-Elseif structure

This time it checks if one option is true, or if another is true, or if none is true.

Code:
If optShow = True Then
      lblShow = txtWrite
Else If optBig = True Then
      lblShow = UCase(txtWrite)
Else
      lblShow = LCase(txtWrite)
End If
So if optShow is true, then its regular characters. If optBig is true, then it will be Large characters and if its none of those, it will become small characters.

Select Case structure

When the user is typing in an amount between 1 and 7, it will show the day.
Look and learn

Code:
Select Case txtDaynumber
          Case 1
                    lblResult = "Monday"
          Case 2
                    lblResult = "Tuesday"
          Case 3
                    lblResult = "Wednesday"
          Case 4
                    lblResult = "Thursday"
          Case 5
                    lblResult = "Friday"
          Case 6
                    lblResult = "Saturday"
          Case 7
                    lblResult = "Sunday"
          Case Else
                    lblResult = ""
End Select

I hope this helps you out.

- Izzane