I have seen and used the term "bracket notation".  Don't know how common
it is.

 

Kevin, why do you allege "bad practice"?  What are you referring to for
that matter?

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin Aebig
Sent: Monday, March 24, 2008 9:47 PM
To: [email protected]
Subject: RE: [flexcoders] What's this Called?

 

That's called bad practice. The lookup method you're referring to is
called an associative array or dictionary.

 

!k

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Nate Pearson
Sent: Monday, March 24, 2008 6:18 PM
To: [email protected]
Subject: [flexcoders] What's this Called?

 

When I do this["idOfsomethingImLookingfor"]

I usually do this if I have to loop something.

So:

for (i=0; i<10; i++){
var example:Object = this["myComponent" + i]
//do some more stuff
}

I'm trying to do the same thing in .NET. I don't know what it's
called though so I'm having a hard time googling it.

Thanks,

Nate

 

Reply via email to