private void LoadJobReg(Job aJob, OleDbDataReader reader)
{
aJob.JobRegID = reader.GetInt32(0);
aJob.JobID = reader.GetInt32(2);
List
JobsList = new List
JobsList = this.GetJobByJobID(aJob.JobRegID);
aJob.JobClient = JobsList.FindIndex(3).ToString;
aJob.JobDate = JobsList.FindIndex(1).ToString;
aJob.JobVenue = JobsList.FindIndex(2).ToString;
aJob.JobNotes = JobsList.FindIndex(4).ToString;
}
what I would like to do is in the last 4 lines of the method, add the individual items/elements of the JobsList list to aJob list. But I am not sure how to do it, as in the last 4 lines I am getting error on build, stating 'Error 3 The best overloaded method match for 'System.Collections.Generic.List
How can I do this?? Any help on the right way will be appreciated. Thanks.
StefanPosted Apr 6, 2009, 8:15 PM
Hope this helps...