Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looping through field names
Message
From
02/07/2007 04:50:46
 
 
To
01/07/2007 21:57:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01237070
Message ID:
01237086
Views:
18
>Hi. I have a DBF with one record (simple enough). How would I refer to the field names if I were looping through them (looking for any with a value).
>
>Thanks, Randy

Randy
For I = 1 to FCOUNT()
  lcField = FIELD( I)
  If not EMPTY( &lcField)
      .... 
  Endif
EndFor
HTH

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform