Re: Array Dimensioned or not
From: Saga (antiSpam_at_somewhere.com)
Date: 11/30/04
- Next message: Tym: "Re: VB6 creates HUGE executable"
- Previous message: DanMH: "Re: Problem in VB UI despite correct dpi setting"
- In reply to: Bonj: "Re: Array Dimensioned or not"
- Next in thread: Ken Halter: "Re: Array Dimensioned or not"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 30 Nov 2004 15:41:02 -0600
You're right, ubound is a better option, thanks <g>
Saga
"Bonj" <benjtaylor at hotpop d0t com> wrote in message
news:ONR1oxx1EHA.1860@TK2MSFTNGP15.phx.gbl...
> 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.
>>>
>>>
>>
>>
>
>
- Next message: Tym: "Re: VB6 creates HUGE executable"
- Previous message: DanMH: "Re: Problem in VB UI despite correct dpi setting"
- In reply to: Bonj: "Re: Array Dimensioned or not"
- Next in thread: Ken Halter: "Re: Array Dimensioned or not"
- Messages sorted by: [ date ] [ thread ]