For Each

Results 1 to 2 of 2

Thread: For Each

  1. #1
    Join Date
    Dec 1969

    Default For Each

    For each objRS.field in objRS.fields<BR>Response.write(field.Name & "&#060;br /&#062;")<BR>Next<BR><BR>gives me this error<BR><BR>Invalid &#039;for&#039; loop control variable <BR>/everytime/EMS/querybuilder.asp, line 31 <BR>For each objRS.field in objRS.fields<BR><BR>If "in" is not correct what should I be using.<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: For Each

    you can&#039;t have an object as the item in a for each.<BR><BR>try this<BR><BR>For each Item in objRS.fields<BR>Response.write(Item.Name & "&#060;br /&#062;")<BR>Next

Posting Permissions

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