Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement