Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2 Listboxes and database
#4
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!
My Blog | My Setup | My Videos | Have a wonderful day.


Messages In This Thread
2 Listboxes and database - by qazinasir - 07-20-2012, 08:46 PM
Re: 2 Listboxes and database - by qazinasir - 07-20-2012, 09:57 PM
Re: 2 Listboxes and database - by brandonio21_phpbb3_import2 - 07-20-2012, 11:51 PM
Re: 2 Listboxes and database - by qazinasir - 07-21-2012, 12:36 AM
Re: 2 Listboxes and database - by qazinasir - 07-22-2012, 02:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  VB2010 & MS Access Database kismetgerald 3 14,652 01-10-2012, 10:35 PM
Last Post: kismetgerald
  others can't connect to online database Stefanvp 3 14,507 08-14-2011, 09:46 PM
Last Post: brandonio21
  connect to online database elnashar77 3 14,678 08-09-2011, 01:27 PM
Last Post: brandonio21
  DataBase - Login - Not Working Murcs 4 17,071 07-02-2011, 09:46 AM
Last Post: brandonio21

Forum Jump:


Users browsing this thread: 1 Guest(s)