Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looping through field names
Message
De
02/07/2007 15:55:34
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
02/07/2007 11:41:48
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01237070
Message ID:
01237232
Vues:
17
>>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).
>
>To paraphrase Terry. No macro sub required.

Just can't resist:
For I = 1 to FCOUNT()
  lcField = forceext(ALIAS(), FIELD(m.I))
  If not EMPTY(eval(m.lcField))
      ....
  Endif
EndFor

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform