MyBase.New() 'will access the parent classes constructor
Public Class BaseballPlayer
Inherits Player
'to create a BaseballPlayer from a Player class!
Tuesday, July 7, 2009
Thursday, July 2, 2009
Code from today
LemoninfoTableAdapter.Insert(txtID.Text, txtLargeSold.Text, _
txtSmallSold.Text, txtName.Text)
Dim newRow As LemonadeStandDataSet.LemoninfoRow
newRow = LemonadeStandDataSet.Lemoninfo.NewLemoninfoRow
newRow.ID = txtID.Text
newRow.LargeSold = txtLargeSold.Text
newRow.SmallSold = txtSmallSold.Text
newRow.SalespersonName = txtName.Text
LemonadeStandDataSet.Lemoninfo.Rows.Add(newRow)
This above code is the most important from today!
Here are the two projects.
txtSmallSold.Text, txtName.Text)
Dim newRow As LemonadeStandDataSet.LemoninfoRow
newRow = LemonadeStandDataSet.Lemoninfo.NewLemoninfoRow
newRow.ID = txtID.Text
newRow.LargeSold = txtLargeSold.Text
newRow.SmallSold = txtSmallSold.Text
newRow.SalespersonName = txtName.Text
LemonadeStandDataSet.Lemoninfo.Rows.Add(newRow)
This above code is the most important from today!
Here are the two projects.
Tuesday, June 30, 2009
To determine prime number
Function determinePrime(ByVal x As Integer) As Boolean
For a = 2 To x / 2
If x Mod a = 0 Then
Return False
End If
Next
Return True
End Function
For a = 2 To x / 2
If x Mod a = 0 Then
Return False
End If
Next
Return True
End Function
Subscribe to:
Posts (Atom)
