Re: Array Dimensioned or not

From: Bonj (benjtaylor)
Date: 11/30/04


Date: Tue, 30 Nov 2004 20:37:24 -0000

Or call UBound. It might be dimmed (2,5).

"Saga" <antiSpam@somewhere.com> wrote in message
news:OrREwpx1EHA.2568@TK2MSFTNGP10.phx.gbl...
>
> Create a boolean function, create an error handler and
> then access the first element of the array. If it does not
> error out, set the function to true. Do nothing in the error
> handler so the function will return false.
>
> Not elegant, but simple <g>
> Saga
>
> "uo" <notreal@notreal.com> wrote in message
> news:Q_-dndVjn_JdSDHcRVn-gA@igs.net...
>> How can I check whether an array has been dimensioned in order to avoid
>> an
>> error when calling ubound() with an undimensioned array ? Is there any
>> elegant/simple way of doing this other than trapping errors.
>>
>> Thanks.
>>
>>
>
>



Relevant Pages

  • Re: Array Dimensioned or not
    ... create an error handler and ... then access the first element of the array. ... Not elegant, but simple ...
    (microsoft.public.vb.general.discussion)
  • Re: UBound not in Intellisense. References problem?
    ... but you can produce an array by using Value ... I wouldn't worry about it not appearing in intellisense. ... > I wonder if I have a corruption in my registration of References, ... I get UCase, UCase$, but no UBound. ...
    (microsoft.public.excel.programming)
  • Re: is there a compiler warning for this piece of code ?
    ... Thanks for your thoughts - I think your speculation as to the history of the ... An element of a char array cannot be NULL; ... > _address_ of the first element. ... >> Incorrect. ...
    (microsoft.public.vc.language)
  • Re: vb.net search network drive
    ... This statement accomplishes the same thing as my recursively called ... Dim sFilesAs String ... array of strings - so what we are doing is matching up the sFiles ... UBound comes into play. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Fast lookup of ranges
    ... I have a peculiar (atleast to me) problem before my hand. ... big table with numeric ranges in each row. ... and the first element is always less than ... Chose an array length N, the larger the faster we can search. ...
    (comp.programming)