Macro operator
Posted: Tue Sep 21, 2010 8:44 pm
Hello all,
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
This doesn't seem to work.
Can someone tell me the syntax to be used?
Many thanks in advance,
Raymond
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
LOCAL cFld := ""
LOCAL nInd := 0
FOR nInd := 10 TO 20
cFld := "D" + Str(nInd,2)
oTable:&cFld := nInd
NEXT
Can someone tell me the syntax to be used?
Many thanks in advance,
Raymond