Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stepping through field names myfield1, myfield2, myfield3...
Message
De
01/03/2000 10:30:17
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Stepping through field names myfield1, myfield2, myfield3...
Divers
Thread ID:
00339788
Message ID:
00339788
Vues:
39
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
Peter Brama
West Pointe Enterprises

VFP is getting easier but STILL alot to learn!!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform