View Single Post
Old 09-13-2004, 11:23 PM   #5 (permalink)
sippin codeine
 
Super Techie

Join Date: Jun 2004

Posts: 312

sippin codeine

Send a message via Yahoo to sippin codeine
Default

Hello, i think your syntax is incorrect.
Code:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim Team As String
        Dim Won As Integer
        Dim Lost As Integer
        Dim Total As Integer

        Team = TextBox1.Text
        Won = Val(TextBox2.Text)
        Lost = Val(TextBox3.Text)
        Total = Val(Won + Lost)
        MsgBox(Team & " won " & Total & " percent of its games.")
    End Sub
End Class
Generates this, maybe what your looking for.



I cannot get a picturebox to display text so i used a msgbox.
__________________
**[System specs]**

Delphi Enterprise 6 - 7
VB 6.0 - 2005 EE
sippin codeine is offline