No, this is on CF 5.0 .. but for CFMX what can you do to work around this?

SO I cannot set the following in CFMX:

<cfset variables.myStr = "Hello World, you are wonderful.">
(period at the end of a sentance?)

That kind of bites!

Paul Giesenhagen
QuillDesign


----- Original Message -----
From: "Gyrus" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, October 03, 2002 1:00 PM
Subject: Re: setting variable with a period


> ----- Original Message -----
> From: "Paul Giesenhagen" <[EMAIL PROTECTED]>
> > I am doing the following but am getting an invalid parser construct, it
> > doesn't like the period is 1.5
> >
> > <cfscript>
> >      request.shipcode_1.5 = '1.50';
> > </cfscript>
> ---------------------------
>
> Are you on MX? MX now doesn't allow periods in var names. Or rather, if
you
> put a period in a var name, it treats it as a structure, and if the
> structure isn't defined, it creates it dynamically.
>
> So the above code would try to create a new structure called
> 'request.shipcode_1', and set the key '5' to '1.50'. And I guess like
other
> vars, the key can't start with a numeral...
>
> HTH,
>
> - Gyrus
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> - [EMAIL PROTECTED]
> work: http://www.tengai.co.uk
> play: http://www.norlonto.net
> - PGP key available
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to