Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stepping through field names myfield1, myfield2, myfield
Message
 
À
01/03/2000 10:30:17
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00339788
Message ID:
00339799
Vues:
14
Loop with the FIELD() command.

>I have a db table that has a series of fields like this....
>
>myfile.butn1
>myfile.cap1
>myfile.butn2
>myfile.cap2
>myfile.butn3
>myfile.cap3
>...
>
>I have a command that needs to be run on each field in the table...
>
>thisform.butn1.caption="\<1"+chr(13)+trim(myfile.cap1)
>thisform.butn2.caption="\<2"+chr(13)+trim(myfile.cap2)
>thisform.butn3.caption="\<3"+chr(13)+trim(myfile.cap3)
>
>can this be looped somehow using a FOR or something similar to step through the
>all the fields replacing the #'s above with a variable or something? This is a simple
>example but a couple other methods are going to have multiple commands for each
>field in the file (all commands are the same for each field except for the field names
>switching
>
>Thanks
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform