Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts

    Multi Dimensional Arrays In ColdFusion

    Can someone one give me an example of a multi dimensional array in coldfusion? Like how to define, set, and use it.

    I can't seem to find anything that will help me. I want it to be 3 dimensional.

    TIA
    OracleGuy

  • #2
    X_r
    X_r is offline
    New Coder
    Join Date
    Mar 2003
    Location
    Staffordshire, England
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    erm...

    <CFSET names[0][0][0] = 1>
    <CFSET names[0][0][1] = 2>
    <CFSET names[0][0][2] = 3>

    that help?

  • #3
    New Coder
    Join Date
    Aug 2003
    Location
    Derby, UK
    Posts
    97
    Thanks
    0
    Thanked 14 Times in 14 Posts
    should really

    <cfset names = ArrayNew(3)>

    first

  • #4
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Okay thanks.
    OracleGuy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •