Ok I'm looking to see where i'm wrong here.   I guess i have incorrect
syntax somewhere but i dont know where,  or maybe you just can't do it
the way i am trying to do it ...

Here's what i want to end up with - a structure with the following
elements for each page:

segment.1.thispage = 1;
segment.1.nextpage = 2;
segment.1.content = "this is the content of the segment";
segment.2.thispage = 2;
segment.2.nextpage = 3;
segment.2.content = "this is the content of segment 2";

The numerals in the stuct name are a variable, that changes with each
iteration of the looping.   So the syntax I'm using to create this
structure is:

segment[#counter#]thispage = counter;
segment[#counter#]nextpage = (counter + 1);
segment[#counter#]content = "#contentelement#";

But this gives me the following CF error:
 Invalid CFML construct found on line 239 at column 46
 ColdFusion was looking at the following text: thispage

So what is it objecting to?  I've tried as many combinations as i can
think of, without success, and i'm starting to think you can't have a
variable in that location in the middle of the structure - you have to
have it at the end of the element name,  as in:

segment.thispage[#counter#]

is this correct?  surely you should be able to have the second level
of the name as a variable?  no?
-- 
Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to