Uh oh.. you read my blog ;o) I need to post on there.
The syntax looks fine. Basically when you are looking at '[]' type syntax all you need to remember is that what is inside the []'s is a KEY. The Key denominates what item is either set or retrieved from a Collection of objects. So if you have collection[1] or collection["fred"] - essentially it doesn't make any difference, because they key could be "1", or it could be "fred", or it could be "dog", it could be "yoda is short" - at the end of the day you could probably even make the Key any other sort of object you desired. It doesn't actually matter to you as a developer what is happening under the hood. (Well it does a little when you get into performance and searching stuff, but right now it doesn't). All you need to remember is you pass in a key to a collection, it maps that to a value it has stored, and then it passes it out. Thassit. Make sense? Mark On 5/19/05, Chad Renando <[EMAIL PROTECTED]> wrote: > Bec, I think I may have found an answer to this, but I need to test on MX. > > I have Query1, which outputs the Attribute list, or column names of my > table. When I run the query, I get a count of the number of > attributes. > > I then dynmaically create my SELECT statement in Query2 using the > attributes from Query1. However, when I create the attributes, I give > them names, using: > > "AS QueryColumn" & IndexNo > > Where IndexNo is an incrementing variable. > > So when I output, I output Query2, and spit out: > > variables[QueryColumn & IndexNo]. > > Not sure if this works, Mark Mandel, is this the correct syntax? > > Chad > who just finished an enjoyable read of Mark's blog and feels much > closer now to him as a person -- E: [EMAIL PROTECTED] W: www.compoundtheory.com ICQ: 3094740 --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
