Click here to Skip to main content
16,005,178 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: The process cannot access the file 'bin\Debug\ MyProject.exe' Pin
nlarson1110-Jan-07 15:42
nlarson1110-Jan-07 15:42 
GeneralRe: The process cannot access the file 'bin\Debug\ MyProject.exe' Pin
JaneQuestion11-Jan-07 15:51
JaneQuestion11-Jan-07 15:51 
GeneralRe: The process cannot access the file 'bin\Debug\ MyProject.exe' Pin
nlarson1112-Jan-07 4:42
nlarson1112-Jan-07 4:42 
QuestionSerial number on usb flash drive Pin
gladsmhe10-Jan-07 15:02
gladsmhe10-Jan-07 15:02 
AnswerRe: Serial number on usb flash drive Pin
nlarson1110-Jan-07 15:53
nlarson1110-Jan-07 15:53 
QuestionClass that contains properties as well as a collection of a Class Pin
Marcus J. Smith10-Jan-07 9:59
professionalMarcus J. Smith10-Jan-07 9:59 
AnswerRe: Class that contains properties as well as a collection of a Class Pin
Colin Angus Mackay10-Jan-07 10:24
Colin Angus Mackay10-Jan-07 10:24 
GeneralRe: Class that contains properties as well as a collection of a Class Pin
Marcus J. Smith10-Jan-07 11:15
professionalMarcus J. Smith10-Jan-07 11:15 
Something like the following.

<br />
Public Class Person<br />
<br />
Private m_strName as String<br />
Private m_strNumber as String<br />
Private m_colPlacesLived as Collection<br />
<br />
Public Property P_Name as String<br />
Get<br />
Return m_strName<br />
Set (ByVal value as String)<br />
m_strName = value<br />
End Property<br />
...<br />
Public Property PlacesLived as Collection<br />
Get<br />
Return m_colPlacesLived<br />
Set (ByVal value as Collection)<br />
m_colPlacesLived.add(value)<br />
End Property<br />
<br />
End Class<br />
<br />
Public Class PlacesLived<br />
<br />
Private m_strAddress as String<br />
...<br />
Public Property PL_Address as String<br />
Get<br />
Return m_strAddress<br />
Set (ByVal value as String)<br />
m_strAddress = value<br />
End Property<br />
<br />
End Class<br />


That is the basic structure of what I am trying to do and when I set the values I do this.

<br />
Dim objPerson as new Person<br />
Dim objPlacesLived as PlacesLived<br />
<br />
objPerson.P_Name = "Name"<br />
<br />
For i as Integer = 0 to DataTable.Rows.Count - 1<br />
objPlacesLived = new PlacesLived<br />
<br />
objPlacesLived.PL_Address = "Address"<br />
<br />
objPerson.PlacesLived = objPlacesLived<br />
Next<br />


Any ideas??

Cleako
GeneralRe: Class that contains properties as well as a collection of a Class Pin
nlarson1110-Jan-07 11:23
nlarson1110-Jan-07 11:23 
GeneralRe: Class that contains properties as well as a collection of a Class Pin
Christian Graus10-Jan-07 11:25
protectorChristian Graus10-Jan-07 11:25 
GeneralRe: Class that contains properties as well as a collection of a Class [modified] Pin
Marcus J. Smith11-Jan-07 1:56
professionalMarcus J. Smith11-Jan-07 1:56 
GeneralRe: Class that contains properties as well as a collection of a Class Pin
Christian Graus11-Jan-07 8:29
protectorChristian Graus11-Jan-07 8:29 
QuestionAccess to arraylist globaly Pin
WestSideRailways10-Jan-07 9:43
WestSideRailways10-Jan-07 9:43 
AnswerRe: Access to arraylist globaly Pin
nlarson1110-Jan-07 10:06
nlarson1110-Jan-07 10:06 
GeneralRe: Access to arraylist globaly Pin
WestSideRailways10-Jan-07 11:15
WestSideRailways10-Jan-07 11:15 
AnswerRe: Access to arraylist globaly Pin
Christian Graus10-Jan-07 11:22
protectorChristian Graus10-Jan-07 11:22 
GeneralRe: Access to arraylist globaly Pin
nlarson1110-Jan-07 11:26
nlarson1110-Jan-07 11:26 
GeneralRe: Access to arraylist globaly Pin
Christian Graus10-Jan-07 11:44
protectorChristian Graus10-Jan-07 11:44 
GeneralRe: Access to arraylist globaly Pin
WestSideRailways10-Jan-07 14:26
WestSideRailways10-Jan-07 14:26 
GeneralRe: Access to arraylist globaly Pin
nlarson1110-Jan-07 15:18
nlarson1110-Jan-07 15:18 
GeneralRe: Access to arraylist globaly Pin
Christian Graus10-Jan-07 18:19
protectorChristian Graus10-Jan-07 18:19 
GeneralRe: Access to arraylist globaly Pin
WestSideRailways10-Jan-07 19:13
WestSideRailways10-Jan-07 19:13 
GeneralRe: Access to arraylist globaly Pin
Christian Graus11-Jan-07 0:52
protectorChristian Graus11-Jan-07 0:52 
QuestionSplash screen & Startup form Pin
kindman_nb10-Jan-07 9:35
kindman_nb10-Jan-07 9:35 
QuestionSerialization in vb2005 Pin
john_paul10-Jan-07 8:27
john_paul10-Jan-07 8:27 

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.