Is it possible to Cast an Object to a String Array the way I'm doing it in
the code below? I'm trying to reuse code I have without creating new code if
I can.
Dim asNames() As String
Dim asValues() As String
Dim sKeyPairValues As String = String.Empty
Dim oNames Object
Dim oValues Object
Dim asDelims() As Char = {","}
asNames = oNames.ToString .Split(asDelims )
asValues = oValues.ToStrin g.Split(asDelim s)
For i = 0 To asNames.Length - 1
Try
sKeyPairValues += asNames(i).ToUp per & "=" & asValues(i) &
"; "
Catch ex As Exception
TraceUtil.Write Error(ex)
End Try
Next
Thanks
the code below? I'm trying to reuse code I have without creating new code if
I can.
Dim asNames() As String
Dim asValues() As String
Dim sKeyPairValues As String = String.Empty
Dim oNames Object
Dim oValues Object
Dim asDelims() As Char = {","}
asNames = oNames.ToString .Split(asDelims )
asValues = oValues.ToStrin g.Split(asDelim s)
For i = 0 To asNames.Length - 1
Try
sKeyPairValues += asNames(i).ToUp per & "=" & asValues(i) &
"; "
Catch ex As Exception
TraceUtil.Write Error(ex)
End Try
Next
Thanks
Comment