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
Any suggestions?
Thanks
Paul Giesenhagen
QuillDesign
~|
Archives:
variable with a period
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
Any suggestions?
Thanks
Paul Giesenhagen
QuillDesign
- 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
: 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
]]
Sent: Thursday, October 03, 2002 12:57 PM
To: CF-Talk
Subject: RE: setting variable with a period
CFMX? Aren't all variables with dots are treated as structures (different
than prior versions). Don't variables need to start with a letter?
-Original Message-
From: Paul Giesenhagen
]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, October 03, 2002 1:14 PM
Subject: RE: setting variable with a period
Bingo - The 5 is being treated as if were a key to a structure. Prior
versions would have accepted this naming convention as shipcode_1.5', but
CFMX is seeing shipcode_1['5
: setting variable with a period
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
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
Any suggestions?
Yep... You can't normally name a variable with a number, and since MX is
dot-notation sensitive, it interprets .5
8 matches
Mail list logo