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

setting to local variables

Explorer ,
Nov 08, 2006 Nov 08, 2006

Copy link to clipboard

Copied

I'd like to make the second part of the code equivalent to the first part of the code, but i got an error when i run the second part. it seems to be ok, but i cannot find why it went wrong. Anyone can correct me?

<cfset variables.otherfundingsource = valuelist(r03001_childquery.otherfundingsource)>

vs

<cfset variables.label5_1 ="##r03001_childquery">
<cfset variables.otherfundingsource = valuelist("#variables.label5_1#.otherfundingsource##")>
TOPICS
Advanced techniques

Views

342

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
Explorer ,
Nov 09, 2006 Nov 09, 2006

Copy link to clipboard

Copied

<cfset variables.otherfundingsource = valuelist("#Evaluate("#variables.label5_1#.otherfundingsource")#")>

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
Explorer ,
Nov 14, 2006 Nov 14, 2006

Copy link to clipboard

Copied

LATEST
when I tired, i got the error msg as below

Invalid CFML construct found on line 14 at column 53.
ColdFusion was looking at the following text:<p>\"</p><p>The CFML compiler was processing:<ul><li>an expression beginning with "valuelist", on line 14, column 43.This message is usually caused by a problem in the expressions structure.<li>a cfset tag beginning on line 14, column 2.</ul>

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