S
SAL
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.ToString.Split(asDelims)
For i = 0 To asNames.Length - 1
Try
sKeyPairValues += asNames(i).ToUpper & "=" & asValues(i) &
"; "
Catch ex As Exception
TraceUtil.WriteError(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.ToString.Split(asDelims)
For i = 0 To asNames.Length - 1
Try
sKeyPairValues += asNames(i).ToUpper & "=" & asValues(i) &
"; "
Catch ex As Exception
TraceUtil.WriteError(ex)
End Try
Next
Thanks