G
Guest
Good morning
The following code generates the exception: "Option Strict On disallows implicit conversion from System.Array to 1-dimensional array of 'String'.
I've been unable to find the conversion command that works. If any of you fine folks could point me in the right direction it would be appreciated
------------------------------------
Dim rdr As SqlDataReader = cmd.ExecuteReade
Dim roleList As New ArrayLis
Do While rdr.Rea
roleList.Add(rdr("group_name")
Loo
'Convert the roleList ArrayList to a String arra
' EXCEPTION GENERATED HER
Dim roleListArray As String() = roleList.ToArray(GetType(String)
Regards
Mar
The following code generates the exception: "Option Strict On disallows implicit conversion from System.Array to 1-dimensional array of 'String'.
I've been unable to find the conversion command that works. If any of you fine folks could point me in the right direction it would be appreciated
------------------------------------
Dim rdr As SqlDataReader = cmd.ExecuteReade
Dim roleList As New ArrayLis
Do While rdr.Rea
roleList.Add(rdr("group_name")
Loo
'Convert the roleList ArrayList to a String arra
' EXCEPTION GENERATED HER
Dim roleListArray As String() = roleList.ToArray(GetType(String)
Regards
Mar