Skip to main content
Participant
February 18, 2010
Question

Need Help with ArrayLen

  • February 18, 2010
  • 1 reply
  • 378 views

Hi all,

I want to loop the names I stored in my database array.

There are total 9 records but i only want the record number 1 to 8 only.

Is that ok for me to use like this?

<cfloop index="i" from="1" to="#ArrayLen(Application.Names)-1#">

I am using SQL server 2008 and CF 8 on Windows 7.

Will really appreciate your help. Thanks

    This topic has been closed for replies.

    1 reply

    Inspiring
    February 18, 2010

    Did you try it?  Does it work?

    --

    Adam

    clarattzkAuthor
    Participant
    February 18, 2010

    Hi A Cameron,

    ya....it works...

    i accidentally type as

    <cfloop index="i" from="1" to="#ArrayLen(Application.Names)#-1"> in my code...tat y i couldn't get any result...