Results 1 to 8 of 8

Thread: Select Case Statement

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2005
    Posts
    27

    Resolved Select Case Statement

    Using a Select Case Statement to determine customer's Status. Either Retail or wholeSale. is the correct code

    VB Code
    ----------------
    Private Sub ProcessOperationRadioButtons(ByVal sender As Object, ByVal e As System.EventArgs) _
    Handles WholeRadioButton.Click
    Dim intRetail, intWholesaler As Integer

    'display appropriate operator
    Select Case True
    Case 1
    Me.WholeRadioButton.Checked = intWholesaler
    Case Else
    Me.RetailRadioButton.Checked = intRetail
    End Select

    End Sub
    ---------------
    end code
    Last edited by terrytemes; Feb 2nd, 2005 at 05:25 AM. Reason: resolved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width