07-20-2012, 11:51 PM
Well that's like.. the whole program you're asking me to code for you! That's a very large project. I don't have time at the moment, but here is a quick idea outline thing:
[code2=vbnet]Public Sub Calculate()
Dim boilingPoints As New List(Of Double)
Dim densities As New List(Of Double)
For Each item In ListBox2.Items
Dim itemName As String = item.ToString
Dim boilingPoint As Double
Dim density As Double
'NOW WE NEED TO SET THE VALUES OF BOILING POINT AND DENSITY
'FROM THE DATABASE USING THE CHEMICAL'S NAME
boilingPoints.Add(boilingPoint)
densities.Add(density)
Next
'HERE WE DO THE FORMULA THINGY USING THE TWO LISTS WE CREATED
End Sub[/code2]
I can elaborate more if need be when I get the time!
[code2=vbnet]Public Sub Calculate()
Dim boilingPoints As New List(Of Double)
Dim densities As New List(Of Double)
For Each item In ListBox2.Items
Dim itemName As String = item.ToString
Dim boilingPoint As Double
Dim density As Double
'NOW WE NEED TO SET THE VALUES OF BOILING POINT AND DENSITY
'FROM THE DATABASE USING THE CHEMICAL'S NAME
boilingPoints.Add(boilingPoint)
densities.Add(density)
Next
'HERE WE DO THE FORMULA THINGY USING THE TWO LISTS WE CREATED
End Sub[/code2]
I can elaborate more if need be when I get the time!