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

i need solution for this?

New Here ,
Jul 29, 2010 Jul 29, 2010

Copy link to clipboard

Copied

hi friends,

        i am doing create a cfc. i have a doubt. i want to pass data like this

<cfargument name="name.num" >

is this possible in cfc? i gave  this format.but i got error illegal characters

give solution?

TOPICS
Builder

Views

656

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 ,
Jul 29, 2010 Jul 29, 2010

Copy link to clipboard

Copied

Nope, it's not possible.

Why do you need the argument to have that specific name?

--

Adam

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 ,
Jul 29, 2010 Jul 29, 2010

Copy link to clipboard

Copied

i am converting a webpage using flex and coldfusion.they passed like this

document_long_name_no_ext.last

document_long_name

how can pass this argument in cfc

give solution?

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
Valorous Hero ,
Jul 29, 2010 Jul 29, 2010

Copy link to clipboard

Copied

How they pass the variable does not matter, you can name it anything you want in your CFC.

<cfargument name="myLegalName"....>

And what ever gets passed to that function will be in the variable arguments.myLegalName.

If you ever do need to access a variable with an illegal name, you can use this form.

scope["a.variable.with.illegal.characters"]

I.E.

variables["name.num"]

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
Community Expert ,
Jul 30, 2010 Jul 30, 2010

Copy link to clipboard

Copied

LATEST

This is a question better suited to the appropriate CFML forum (Getting Started with ColdFusion, for instance).

You're asking in the ColdFusion Builder forum, which is intended for discussion of the IDE itself, not the CFML language.

/charlie


/Charlie (troubleshooter, carehart.org)

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