Popular Posts
CookSwing CookSwing is a library which builds Java Swing GUI from XML documents. It is under continuously active development, since I make a living by... ListSelectionListener & ItemListener import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Toolkit; import java.awt.event.ItemEvent; import java.awt.event.ItemL... CTE, recursive search WITH DepartmentSearch(DeptID, DeptParent, DeptName, OuID) AS (     -- 找出簽核者所屬部門     SELECT d.DeptID, d.DeptParent, d.DeptName, d.OuID     FR...
Stats
Flow control: loop (while)
data: NUM type I,
      STR(1).

while SY-INDEX < 10.
  STR = SY-INDEX.
  NUM = NUM + SY-INDEX.
  if SY-INDEX > 1.
    write '+'.
  endif.
  write STR.
endwhile.

write: '=', NUM.
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 =          45