Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Field Names, Field Values
Message
De
22/09/1999 15:13:32
Todd Wolfe
Certified Marketing Services
Kinderhook, New York, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Field Names, Field Values
Divers
Thread ID:
00267714
Message ID:
00267714
Vues:
40
I am trying to do a replace statement inside of a loop that replaces information in another table
MY loop
Starts at record 1 takes the first field name and takes its value and replaces a value in another table.

Whenever I try to do this i keep getting the actual field name and not the values that are stored in that field?

heres my loop

for fld_val=1 to fcount()
?fld_val
goto 1
select c_statement
append blank
do while !eof()
select audit
X=recno()
select c_statement
field ="c_statement.account" + alltrim(str(X))
select audit
FLD_NAM=field(fld_val)
replace &field with fld_nam
select audit
if !eof()
skip
select c_statement
go top
endif
enddo
endfor

The replace statement takes the actual field name can I get what is stored in that field for the record i am on?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform