I got this error:
Context validation error for the cfscript tag.
Also, since I've got a somewhat steep learning curve here, it would
help a lot if you could let me know where how the similar places should
change.
Thanks much,
Lewis
On Sat, May 18, 2013 at 1:26 PM, Raymond Camden <[email protected]>wrote:
>
> Right, see my last email about converting the implicit notation into
> something simpler.
>
>
> On Sat, May 18, 2013 at 12:21 PM, Lewis Billingsley <
> [email protected]> wrote:
>
> >
> > I attached my file to one of your emails, but I think it didn't go
> through
> > because it had gone through cf-newbie. Here is my line 37:
> >
> > if(x == 1) {
> > arrayAppend(newDates, {first:dates[1],last:dates[1]});
> > continue;
> > }
> >
> >
> >
> > On Sat, May 18, 2013 at 12:58 PM, Raymond Camden <
> [email protected]
> > >wrote:
> >
> > >
> > > What is your line 37? Mine is writeDump(var=newdates, label="New
> data");
> > >
> > > I bet you mean this:
> > >
> > > arrayAppend(newDates, {first:dates[x], last:dates[x]});
> > >
> > > if so, you may be on an older version of CF. I used implicit notation
> to
> > > define the structure. You can change it to this:
> > >
> > > newdateThing = structNew();
> > > newdateThing.first = dates[x];
> > > newdateThing.last = dates[x];
> > > arrayAppend(newDates, newdateThing);
> > >
> > > Note you will need to make similar changes elsewhere.
> > >
> > >
> > > On Sat, May 18, 2013 at 11:29 AM, Lewis Billingsley <
> > > [email protected]> wrote:
> > >
> > > >
> > > > Hi Ray,
> > > >
> > > > I tried to run the code you sent, before trying to understand it.
> > Here
> > > > is the message I got:
> > > >
> > > >
> > > > - An expression beginning with arrayAppend, on line 37, column
> > > >
> > > > Thanks,
> > > > Lewis
> > > >
> > > >
> > > --
> > >
> >
> ===========================================================================
> > > Raymond Camden, Adobe Developer Evangelist
> > >
> > > Email : [email protected]
> > > Blog : www.raymondcamden.com
> > > Twitter: cfjedimaster
> > >
> > >
> > >
> >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:6063
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm