bigracefan
Programmer
I'm spliting a file and sometimes I get a line that doesn't have all of the elements.
strValue(i, 2) = MyTempStr(1) 'Index
strValue(i, 3) = MyTempStr(2) 'Status = 0 pass, 1 fail
strValue(i, 4) = MyTempStr(3) 'Measured
strValue(i, 5) = MyTempStr(4) 'Lo Limit
strValue(i, 6) = MyTempStr(5) 'Hi Limit
How can I test to see if MyTempStr will have a value or will be give a subscript out of range.
strValue(i, 2) = MyTempStr(1) 'Index
strValue(i, 3) = MyTempStr(2) 'Status = 0 pass, 1 fail
strValue(i, 4) = MyTempStr(3) 'Measured
strValue(i, 5) = MyTempStr(4) 'Lo Limit
strValue(i, 6) = MyTempStr(5) 'Hi Limit
How can I test to see if MyTempStr will have a value or will be give a subscript out of range.