Re: New Oject() {} vs. New Object(-1) {}
- From: "stand__sure" <stand__sure@xxxxxxxxxxx>
- Date: Wed, 20 Apr 2005 12:45:08 -0400
Thanks for the replies (and for tolerance of the typo).
I had seen no difference in the debugger, but the guidance from microsoft
was to use "New Object(-1) {}" to create an empty array -- the form "New
Object() {}" is more intuitive...
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx> wrote in message
news:utrmzcYRFHA.2228@xxxxxxxxxxxxxxxxxxxxxxx
> "stand__sure" <stand__sure@xxxxxxxxxxx> schrieb:
>> This has bugged me for some time.
>>
>> Is there any "behind the scenes" difference between the following two
>> snippets?
>> Dim obj1 As Object = New Oject() {}
>> Dim obj2 As Object = New Object(-1) {}
>
> After some corrections ('obj1()', 'obj2()', 'Oject' -> 'Object') there is
> no difference, not even behind the scenes, between the two lines.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://classicvb.org/petition/>
.
- Follow-Ups:
- Re: New Oject() {} vs. New Object(-1) {}
- From: Herfried K. Wagner [MVP]
- Re: New Oject() {} vs. New Object(-1) {}
- References:
- New Oject() {} vs. New Object(-1) {}
- From: stand__sure
- Re: New Oject() {} vs. New Object(-1) {}
- From: Herfried K. Wagner [MVP]
- New Oject() {} vs. New Object(-1) {}
- Prev by Date: Re: IF statement is 'not working'
- Next by Date: Re: New Oject() {} vs. New Object(-1) {}
- Previous by thread: Re: New Oject() {} vs. New Object(-1) {}
- Next by thread: Re: New Oject() {} vs. New Object(-1) {}
- Index(es):
Relevant Pages
|