I have the following code:
'************************************************************
Dim KeyValue() As String ' contains "Key=Value" pairs
Dim Value(20) As String ' assuming a max of 21 values
For I% = LBound(KeyValue) to UBound(KeyValue)
Value(I) = GetValue(KeyValue(I))
' GetValue will return the "Value" from "Key=Value"
Next I%
'************************************************************
The array KeyValue will have some pairs like "Key= " which has no value in it.
My question is: Is this method of assigning array values from one to the other correct?
If so, then why is it that whatever statements I have after this for loop does not get executed?
Note that some elements in Value() is a NullString, is this a likely cause of the problem?
'************************************************************
Dim KeyValue() As String ' contains "Key=Value" pairs
Dim Value(20) As String ' assuming a max of 21 values
For I% = LBound(KeyValue) to UBound(KeyValue)
Value(I) = GetValue(KeyValue(I))
' GetValue will return the "Value" from "Key=Value"
Next I%
'************************************************************
The array KeyValue will have some pairs like "Key= " which has no value in it.
My question is: Is this method of assigning array values from one to the other correct?
If so, then why is it that whatever statements I have after this for loop does not get executed?
Note that some elements in Value() is a NullString, is this a likely cause of the problem?