the_wayman
Member
- Joined
- Jan 9, 2009
- Messages
- 5
- Programming Experience
- 5-10
On the Line :Next: it gives Unable to cast object of type 'System.Int32' to type 'System.String'
I am new to linq
lvTask is a list view component
lvTaskDate,lvTaskName r columns
Dim tasks = From tk In DB.xTasks _
Where tk.DF = False And tk.EmployeeKey = CurrentUser.EmployeeKey
For Each tc In tasks
lvTaskDate.ListView.Items.Add(tc.TaskDateTime.ToShortDateString)
lvTaskName.ListView.Items.Add(tc.TaskSubject)
ReDim Preserve taskKey(UBound(taskKey))
taskKey(UBound(taskKey) - 1) = tc.TaskKey
Next
Helppp Plz
I am new to linq
lvTask is a list view component
lvTaskDate,lvTaskName r columns
Dim tasks = From tk In DB.xTasks _
Where tk.DF = False And tk.EmployeeKey = CurrentUser.EmployeeKey
For Each tc In tasks
lvTaskDate.ListView.Items.Add(tc.TaskDateTime.ToShortDateString)
lvTaskName.ListView.Items.Add(tc.TaskSubject)
ReDim Preserve taskKey(UBound(taskKey))
taskKey(UBound(taskKey) - 1) = tc.TaskKey
Next
Helppp Plz