Click here to Skip to main content
15,913,773 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: IP Address Pin
nagendrathecoder27-Jun-08 23:50
nagendrathecoder27-Jun-08 23:50 
GeneralRe: IP Address Pin
nagendrathecoder27-Jun-08 23:51
nagendrathecoder27-Jun-08 23:51 
GeneralRe: IP Address Pin
Luc Pattyn28-Jun-08 1:39
sitebuilderLuc Pattyn28-Jun-08 1:39 
AnswerRe: IP Address Pin
Paul Conrad28-Jun-08 7:46
professionalPaul Conrad28-Jun-08 7:46 
AnswerRe: IP Address Pin
Eytukan28-Jun-08 21:35
Eytukan28-Jun-08 21:35 
GeneralRe: IP Address Pin
nagendrathecoder29-Jun-08 18:30
nagendrathecoder29-Jun-08 18:30 
AnswerRe: IP Address Pin
nagendrathecoder29-Jun-08 18:31
nagendrathecoder29-Jun-08 18:31 
QuestionBeginner help please? Pin
GMHLJ27-Jun-08 21:15
GMHLJ27-Jun-08 21:15 
Hi, beginner programmer here, first post Smile | :)

I am writing a program that uses a arraylist of class part, and class Car consists of

Public Class Part
    Public name As String
    Public price As Double
End Class


Public Class Car
    Public name As String
    Public parts As New ArrayList
End Class


There is an ArrayList of Part and I would like each Car to consist of various Parts and the price would be totaled for a Car etc.

I would like to be able to change the price of a Part and if a Car contains that part I will be able to retotal the new amount.

By using something like
Car.parts.Add(partArraylist.Item(i))
Am i adding a copy? reference?

Any advice would be great, or am i approaching it the wrong way?

Thanks
150
AnswerRe: Beginner help please? Pin
Christian Graus27-Jun-08 23:37
protectorChristian Graus27-Jun-08 23:37 
GeneralRe: Beginner help please? Pin
GMHLJ28-Jun-08 1:49
GMHLJ28-Jun-08 1:49 
GeneralRe: Beginner help please? Pin
Guffa28-Jun-08 4:04
Guffa28-Jun-08 4:04 
Questiondetect a connection string Pin
mehrnoosh27-Jun-08 19:15
mehrnoosh27-Jun-08 19:15 
AnswerRe: detect a connection string Pin
Christian Graus27-Jun-08 19:26
protectorChristian Graus27-Jun-08 19:26 
GeneralRe: detect a connection string Pin
mehrnoosh27-Jun-08 19:46
mehrnoosh27-Jun-08 19:46 
GeneralRe: detect a connection string Pin
Christian Graus27-Jun-08 19:47
protectorChristian Graus27-Jun-08 19:47 
GeneralRe: detect a connection string Pin
mehrnoosh27-Jun-08 20:00
mehrnoosh27-Jun-08 20:00 
GeneralRe: detect a connection string Pin
Christian Graus27-Jun-08 20:03
protectorChristian Graus27-Jun-08 20:03 
GeneralRe: detect a connection string Pin
mehrnoosh27-Jun-08 20:18
mehrnoosh27-Jun-08 20:18 
GeneralRe: detect a connection string Pin
Christian Graus27-Jun-08 20:19
protectorChristian Graus27-Jun-08 20:19 
GeneralRe: detect a connection string Pin
mehrnoosh27-Jun-08 20:28
mehrnoosh27-Jun-08 20:28 
GeneralRe: detect a connection string Pin
Christian Graus27-Jun-08 20:30
protectorChristian Graus27-Jun-08 20:30 
GeneralRe: detect a connection string Pin
mehrnoosh27-Jun-08 20:39
mehrnoosh27-Jun-08 20:39 
Questionarchive Pin
pinkidasu27-Jun-08 9:36
pinkidasu27-Jun-08 9:36 
AnswerRe: archive Pin
Christian Graus27-Jun-08 13:04
protectorChristian Graus27-Jun-08 13:04 
GeneralRe: archive Pin
pinkidasu30-Jun-08 3:34
pinkidasu30-Jun-08 3:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.