Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: "Thorsten Albers" Newsgroups: comp.lang.basic.visual.misc,microsoft.public.vb.general.discussion Subject: Re: Arrays Q Date: Wed, 21 Dec 2011 21:09:01 +0000 (UTC) Organization: Albert-Ludwigs-Universität Freiburg Lines: 14 Message-ID: <01ccc024$c471f4e0$a202a8c0@vaio> References: Injection-Date: Wed, 21 Dec 2011 21:09:01 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="J3PAU6sEvxforY04/JPtcw"; logging-data="29673"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18TFCwhhdI/alLlZzO7qHgC" X-Newsreader: Microsoft Internet News 4.70.1155 Cancel-Lock: sha1:HWnqbzmGo1UfjzkIWAyVI4halyA= Xref: x330-a1.tempe.blueboxinc.net comp.lang.basic.visual.misc:579 GS schrieb im Beitrag ... > What I'm looking for is a way to determine how many dims an unknown > array is. Currently I use a Do...Loop with a counter that exits when a > trapped error occurs. I don't think I'd ever encounter more than a 3D > array, but a generic method to determine how many dims and how to get > their respective ubounds is what I'm hoping someone can help me with. Try SafeArrayGetDim() (OLEAUT32.DLL). -- Thorsten Albers gudea at gmx.de