G
Guest
I have an external function, not written by me, that returns a time series of
prices between two dates for a given list of stocks. If there are prices, I
am returned a 2D array containing date/price pairs. If there are no prices I
am returned a 1D array containing the string "None".
I'm having trouble testing for these conditions. The obvious test would be
to use UBound on the second dimension, but in the "no prices" case there is
no second D, and I get a bounds error. The other possibility is to test how
big the first dimension is, but zero is an appropriate answer if I pass in
one stock.
So then I just tried trapping the error, but it seems this doesn't work -- I
still get the error dialog popping up.
Anyone have a suggestion here?
Maury
prices between two dates for a given list of stocks. If there are prices, I
am returned a 2D array containing date/price pairs. If there are no prices I
am returned a 1D array containing the string "None".
I'm having trouble testing for these conditions. The obvious test would be
to use UBound on the second dimension, but in the "no prices" case there is
no second D, and I get a bounds error. The other possibility is to test how
big the first dimension is, but zero is an appropriate answer if I pass in
one stock.
So then I just tried trapping the error, but it seems this doesn't work -- I
still get the error dialog popping up.
Anyone have a suggestion here?
Maury