nValue=524870
nOneLac = 100000
nLacCount = INT(nValue/nOneLac)
nLastVal = nValue % nOneLac
? nLacCount, nLastVal
>
>I have a variable called nvalue=524870
>I want to divide it into parts as
>
>100000
>100000
>100000
>100000
>100000
>24870
>
>Every part will be consists on ONE LAC (100000) and remaining figure (24870) will be in next part.
>
>Then all parts, divisions, should be save in a temporary dbf.
>
>Please help
--sb--