Try this:
LOCAL i,lnMaxValue,lnAppend,lnRec
lnRec = 12
FOR i = 1 TO 10
lnMaxValue = i*10
IF m.lnRec < lnMaxValue
EXIT
endif
ENDFOR
lnAppend = m.lnMaxValue - m.lnRec
FOR i = 1 TO m.lnAppend
APPEND BLANK
endfor
>Dear Experts
>
>I want to fill table with blank records, with 10 records division, such as
>
>If Table has 0 records then 10 blank recods should automatically appended
>If Table has 6 records then 4 blank recods should automatically appended
>If Table has 12 records then 8 blank recods should automatically appended
>If Table has 37 records then 3 blank recods should automatically appended
>And so on…….
>
>Please help