YYZ
Thu Apr 29 15:54:03 CDT 2004
"U. Orhun" <uorhun@symagery.com> wrote in message
news:R9mdnc5aWp1twgzdRVn-ig@igs.net...
> Thanks a lot !! BTW, I have nothing against error trapping, I just did not
> want to resort to it without checking if there was a function that does
> this. Now I know there isn't and I will use error trapping.
But there is, and Yanick (Zoury) pointed you direct to it.
"or peek at the behind-the-scene SAFEARRAY structure :
http://vbnet.mvps.org/code/helpers/getarraydims.htm"
That's what I use (well, a modified version anyway).
Error trapping has its place, but you can get around it in this case. I too
like to avoid trapping errors, preferring never to have them happen at all. If
both ways work fine, then that's just programming style. I just find that
trapping errors like that end up causing the code to pause more than is
necessary when running in the IDE since I run with "Break on All Errors" set.
Matt