I have a table with various field named D10,D11,D12,D13, ...
I would like to update the fields in a loop using the macro operator.
Something similar to
- Code: Select all Expand view
LOCAL cFld := ""
LOCAL nInd := 0
FOR nInd := 10 TO 20
cFld := "D" + Str(nInd,2)
oTable:&cFld := nInd
NEXT
This doesn't seem to work.
Can someone tell me the syntax to be used?
Many thanks in advance,
Raymond