Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Field Names, Field Values
Message
De
22/09/1999 15:16:38
 
 
À
22/09/1999 15:13:32
Todd Wolfe
Certified Marketing Services
Kinderhook, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00267714
Message ID:
00267718
Vues:
19
>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

try eval(fld_name) up above

>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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform