V
VB Programmer
I have an arraylist which holds a custom structure I made. (The structure
contains FirstName, LastName, Address and EmpId.)
I am trying to loop through the arraylist to write out each item. Here's
the code:
Dim i As Integer
For i = 0 To alRecentActivity.Count - 1
Debug.Write(alRecentActivity.Item(i).FirstName)
Next
Problem. It puts a blue squiggly under alRecentActivity.Item(i).FirstName
that says "Option Strict On disallows late binding". I want to keep Option
Strict On. Any ideas how I can loop through the arraylist and retrieve
particular values of each item?
Thanks.
contains FirstName, LastName, Address and EmpId.)
I am trying to loop through the arraylist to write out each item. Here's
the code:
Dim i As Integer
For i = 0 To alRecentActivity.Count - 1
Debug.Write(alRecentActivity.Item(i).FirstName)
Next
Problem. It puts a blue squiggly under alRecentActivity.Item(i).FirstName
that says "Option Strict On disallows late binding". I want to keep Option
Strict On. Any ideas how I can loop through the arraylist and retrieve
particular values of each item?
Thanks.