<CFSET> Tag - ColdFusion


>> Return to ColdFusion Tag Index

The <CFSET> tag allows you ...



  <CFSET> Comments from Macromedia LiveDocsLiveDocs Comments - coldfusion - 5.0 - CFML_Reference - Tags94.htm
You can't assign any variable a name that contains special chararcters other than those listed in the excerpt below:

- Variable names must start with a letter, an underscore character, or a Unicode currency symbol. Examples of valid variable names are FirstName, _department, or $userID.

- After the starting character, variable names can contain any number of letters, underscores, numbers, or Unicode currency symbols.

- Variable names must not contain spaces.

- Simple variable names must not contain the dot (.) character. For example, setting a variable name to Sales.Manager will actually create a structure. (For more information on structures, see Step 10.)

LiveDocs Comments - coldfusion - 5.0 - CFML_Reference - Tags94.htm
I've got a problem with this dinamic variable assignation:

<cfset dinPosicionX = "Application.mapa001[1][1]">
<cfset "#dinPosicionX#"=consulta.x>

and the error message is:

Service threw an exception during method invocation: The string "Application.mapa001[1][1]" is not a valid ColdFusion variable name.

Someone...

LiveDocs Comments - coldfusion - 5.0 - CFML_Reference - Tags94.htm
i would like to see an example of the dynamic assignents. EG. <cfset x="y"><cfset #x#="z">

LiveDocs Comments - coldfusion - 5.0 - CFML_Reference - Tags94.htm
just want to see the example to be diplayed



[Top]


Recommended Books

[Top]

Web Sites

[Top]

Copyright © 2003- 2008, Orville Paul Chomer, All Rights Reserved