Results 1 to 3 of 3

Thread: Cint or Cdbl question

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2004
    Posts
    63

    Resolved Cint or Cdbl question

    here's the code for the button in question:

    Private Sub btnCompute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCompute.Click
    Dim BattingAverage As Double
    BattingAverage = txtHits.Text / txtBat.Text
    Dim strAverage As String = "Your Batting Average is " & BattingAverage
    lstAverage.Items.Add(strAverage)
    End Sub


    My teachers instructions says you need to convert your numeric text input to numbers using Cint or Cdbl and I'm not sure this is right. Can anyone help me?
    Thank you very much
    Last edited by Cassy; Oct 17th, 2004 at 01:44 PM.

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