R
Rich
Hello,
If I leave Option Strict Off I can use the following
syntax to read data from a Lotus Notes application (a
NotesViewEntry object represents a row of data from a
Lotus Notes View - like a record in a sql Server view)
....
Dim entry As Domino.NotesViewEntry
Dim obj As Object
str1 = entry.ColumnValues(0)
For Each obj In entry.ColumnValues
str1 = obj
....
But if I turn Option Strict on then I get a "Late Binding
not allowed" error for
str1 = entry.ColumnValues(0)
and "Expression is of type System Object which is not a
collection type" for
For Each obj In entry.ColumnValues
....
I also tried
Dim obj() As Object = entry.ColumValues
and got the error message that "Option Strict doesn't
allow implicit conversions from System.Object to a 1
dimensional array of System.Object"
But it did allow
Dim obj As Object = entry.ColumnValues
Could anyone suggest conversion syntax or how I could
extract data from obj with Option Strict on? As long as I
am using .Net, I am trying to get into the habit of using
it correctly.
TIA,
Rich
If I leave Option Strict Off I can use the following
syntax to read data from a Lotus Notes application (a
NotesViewEntry object represents a row of data from a
Lotus Notes View - like a record in a sql Server view)
....
Dim entry As Domino.NotesViewEntry
Dim obj As Object
str1 = entry.ColumnValues(0)
For Each obj In entry.ColumnValues
str1 = obj
....
But if I turn Option Strict on then I get a "Late Binding
not allowed" error for
str1 = entry.ColumnValues(0)
and "Expression is of type System Object which is not a
collection type" for
For Each obj In entry.ColumnValues
....
I also tried
Dim obj() As Object = entry.ColumValues
and got the error message that "Option Strict doesn't
allow implicit conversions from System.Object to a 1
dimensional array of System.Object"
But it did allow
Dim obj As Object = entry.ColumnValues
Could anyone suggest conversion syntax or how I could
extract data from obj with Option Strict on? As long as I
am using .Net, I am trying to get into the habit of using
it correctly.
TIA,
Rich