• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How do I do this?

New Here ,
Jan 08, 2008 Jan 08, 2008

Copy link to clipboard

Copied

<cfset #evaluate("session.partnumber#x#")#=0>

You can see what I am trying to do, however this will not work
nor
<cfset evaluate("session.partnumber#x#")=0>
nor
<cfset session.partnumber#x#=0>

Any insight would be helpful. Thanks.
TOPICS
Advanced techniques

Views

275

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jan 08, 2008 Jan 08, 2008
SilentBob'secretfusion wrote:
> <cfset #evaluate("session.partnumber#x#")#=0>

Must be the day of the array notation. Third time today this has come up.

<cfset session['partnumber' & x] = 0>
<!--- Look Ma! No Evaluate()! --->

Array notation, learn it love it, it applies to almost every variable
type in ColdFusion.

Votes

Translate

Translate
LEGEND ,
Jan 08, 2008 Jan 08, 2008

Copy link to clipboard

Copied

SilentBob'secretfusion wrote:
> <cfset #evaluate("session.partnumber#x#")#=0>

Must be the day of the array notation. Third time today this has come up.

<cfset session['partnumber' & x] = 0>
<!--- Look Ma! No Evaluate()! --->

Array notation, learn it love it, it applies to almost every variable
type in ColdFusion.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 09, 2008 Jan 09, 2008

Copy link to clipboard

Copied

LATEST
Ian you dah man! Thanks. 🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 08, 2008 Jan 08, 2008

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation