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

i need solution for this?

New Here ,
Jul 29, 2010 Jul 29, 2010

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
702
Translate
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

Nope, it's not possible.

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

--

Adam

Translate
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

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?

Translate
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

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"]

Translate
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
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)
Translate
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