Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GATHER NAME problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00806421
Message ID:
00806449
Views:
20
This message has been marked as the solution to the initial question of the thread.
Hi Jamie,

Yup, I see the same. Looks like another quirk of the collection FOR EACH - FWIW avoiding it seems to work:
 *!*	  SELECT Items
  *!*	  LOCATE
  *!*	  FOR EACH loItem IN loItems
  *!*	    *-- LoItem.Field2 = "Changed"
  *!*	    GATHER NAME loItem MEMO
  *!*	    IF NOT EOF()
  *!*	      SKIP 1
  *!*	    ENDIF
  *!*	  ENDFOR
  *!*	  *-- But it doesn't here

  LOCAL loTemp,x
  SELECT Items
  LOCATE
  FOR x = 1 TO loItems.COUNT
    loTemp = loItems(x)
    GATHER NAME loTemp MEMO
    IF NOT EOF()
      SKIP 1
    ENDIF
  ENDFOR
Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform