for <loopname> = <start> to <end> [step <stepvalue>]
[code]
next
Nested for - next and use of Place holders are allowed.
step: (is optional)
1 - increment with 1
-1 - decrement with 1
Special Typ's:
DATUM DataTime
MONAT Month
Example:
Set Columns afterward's.
In that case you must work over the whole DataWindow
// Save current Row
setvar=lastrow=<getrow>
// Deactivate rowfocuschanged-Event
// rowcount=quantity of the lines
for MyLoop = 1 to <rowcount>
// junp to line
dw_1.setrow=<MyLoop>
sqlca.select u_mycolumn into dw_1.item.mycolumn "OITM" where "ItemCode"=<dw_1.item.itemcode.value,dbstring> next
// end of loop
next