You are here: Re: UBOUND « MsSQL Server « IT news, forums, messages
Re: UBOUND

Posted by Terry Kreft on 10/22/17 11:32

If it's a variant array that wouldn't work e.g.

Dim Arr ' i.e. a variant

Which at some later point is assigned a value such as

Arr = Array(1, 2)

After this line IsArray would return true, before this line it would return
false. Before this line Ubound(Arr) raises the error the OP has seen after
it the error is not raised, hence the reccomendation to use IsArray.




--
Terry Kreft



"Trevor Best" <nospam@localhost.invalid> wrote in message
news:4381c70a$0$23296$db0fefd9@news.zen.co.uk...
> Terry Kreft wrote:
>> As others have said this is a SQL group but having said that the answer
>> is probably that Arr is not an array.
>>
>> Have a look at the IsArray function to test for this before using the
>> Ubound function.
>
> Personally, I'd look at the Dim statement so see if was an array :-)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация