How to Find ColdFusion CFC Array

104 45
    • 1). Open the ColdFusion programming software from the Windows "Start" menu. Open your Web project after ColdFusion loads.

    • 2). Click the "File" menu item and select "Open." Double-click the CFC file you want to include in your project.

    • 3). Press the "Ctrl" and "F" keys. Type "[" in the text box and press "Enter." Brackets define other types of variables, so you must know what a variable declaration looks like to identify an array.

    • 4). Identify if the variable is an array. The "NewArray" function defines a new array and the brackets identify an array index. Find the declaration of the variable with the bracket character. For instance, the following code defines an array named "colors," so you know you've found an array in the CFC file:

      colors=ArrayNew(3)

      The following code assigns a color to the array variable:

      colors[0] = "blue"

Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.

"Law & Legal & Attorney" MOST POPULAR