Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Field Names, Field Values
Message
From
22/09/1999 15:16:38
 
 
To
22/09/1999 15:13:32
Todd Wolfe
Certified Marketing Services
Kinderhook, New York, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00267714
Message ID:
00267718
Views:
17
>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?
Previous
Reply
Map
View

Click here to load this message in the networking platform