Re: Dim, var, & why?
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Thu, 21 Jun 2007 14:08:33 -0500
"Tony Proctor" <tony_proctor@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:OscxucCtHHA.4916@xxxxxxxxxxxxxxxxxxxxxxx
That's not what I meant Ralph. Arrays are not objects in VB. They can hold
objects but they have no properties or methods themselves.
Going back to VB.Net, I was interested in whether a whole array could be
stored in a simple datum of type Object since this would pretty much make
Variant and Object compatible from a usage POV.
I'm not interested in Collections at this point. I think you misunderstood
my interest here :-)
Tony Proctor
It is likely I misunderstand everything. <g>
Calling a VB Array an "Object" is obviously incorrect in the context of VB.
In VB they are a Data Type. They are also a Type in dotNet (well, a
composite), and all types in dotNet derive from object. Which was what I was
thinking as I typed. <pun not intended> However, what an array really IS
depends on the symatics or even the contents.
[While I usually think I know what I mean, I often mis-speak when dealing
with "Objects/objects" in dotNet. It was bad enough before when the word
"object" was universally abused, but now we have an Object data type and a
base object type from which all 'intrinsic' data types derive unless they
are value-based in which case they aren't objects unless they are asked to
be, which depends on .... Add to that, I change back and forth on a daily
basis - anyone's sanity is bound to become suspect. <g>]
Anyway, forget that mess. <g> Yes, an array reference can be assigned to an
Object Data Type.
I only wandered off into Collections because they offer an alternative
anytime you have a bag of stuff. Arrays definitely have mechanical
advantages, but in a world of O/object thingies sometimes it is just better
to deal with stuff. <g>
-ralph
<g>
.
- References:
- Dim, var, & why?
- From: Pop`
- Re: Dim, var, & why?
- From: Tony Proctor
- Re: Dim, var, & why?
- From: Michael C
- Re: Dim, var, & why?
- From: Karl E. Peterson
- Re: Dim, var, & why?
- From: Michael C
- Re: Dim, var, & why?
- From: Tony Proctor
- Re: Dim, var, & why?
- From: Steve Gerrard
- Re: Dim, var, & why?
- From: Tony Proctor
- Re: Dim, var, & why?
- From: Steve Gerrard
- Re: Dim, var, & why?
- From: Tony Proctor
- Re: Dim, var, & why?
- From: Ralph
- Re: Dim, var, & why?
- From: Tony Proctor
- Dim, var, & why?
- Prev by Date: Re: Support VB 6.0
- Next by Date: Re: Is VB a good choice for creating a Billing Software for a retailer?
- Previous by thread: Re: Dim, var, & why?
- Next by thread: Re: Dim, var, & why?
- Index(es):
Relevant Pages
|