Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default CFLOOP/CURRENTROW

    I have a LOOP that runs over a query and I use CURRENTROW so that I can then
    use MOD on it so I can utilize repeating ARRAY data to change the color on a
    table.. All is well. but now I find I have to create a CFLOOP that does not
    have a query but a TO and a FROM (form variables for a date range).. Is there
    any way to dig into the CFLOOP to find out what record it's on , so first loop
    would be 1, second loop would be 2 etc Thanks Mark

    kljkhkjhkjh Guest

  2. Similar Questions and Discussions

    1. CurrentRow problem in a random question list
      Hi: I found a free source code of a coldfusion app and it works very fine and shows a list of random questions form a database but the prblem is it...
    2. Help PLEASEEEEEE With CurrentRow Issue
      I would like to display 6 records in row then go to the next row. I would like to do this without using a table. I would also like to me able to...
    3. PLEASE I Need Help with CurrentRow Issue
      I would like to display 6 records in row then go to the next row. I would like to do this without using a table. I would also like to me able to...
    4. CurrentRow Problem
      I would like to display 6 records in row then go to the next row. I would like to do this without using a table. I would also like to me able to...
    5. CurrentRow
      In the tutorial the author says: The CurrentRow variable is one of a few variables that ColdFusion automatically exposes that provide information...
  3. #2

    Default Re: CFLOOP/CURRENTROW

    In a <cfloop>, when you've got a FROM and a TO, you're also supposed to
    specify an INDEX. I didn't actually know it was possible to NOT specify
    the index parameter (and neither did the docs, it seems...):

    [url]http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-p77.htm#wp1101087[/url]

    --

    Adam
    Adam Cameron Guest

  4. #3

    Default Re: CFLOOP/CURRENTROW

    You can also do this:

    <cfset row = 0>
    <cfloop from="1" to="100">
    <cfset row = row+1>
    #row#
    </cfloop>
    Supra LTD Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139