Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odd behavior with AFIELDS function
Message
From
11/06/1997 20:17:32
Jody Cairns
OAO Technology Solutions
Moncton, New Brunswick, Canada
 
 
To
11/06/1997 16:08:01
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00035943
Message ID:
00036011
Views:
53
>This was a good one. The 5.0 debugger helped me with this. At your wait window, t is a reference to tmp.t, NOT the local variable. Goes to show the importance of proper naming conventions, even for seemingly insignificant variables. Move the WAIT to the line after USE and everything is OK.

Doh!

It occured when I was going through the elements from an AFIELDS() array from a table I imported from a large spreadsheet. My control variable in my FOR look was "i", which was, as you helped point out, a field within my imported table.

Thanks,

Jody
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform