这程序有什么错?该如何解决

这程序有什么错?i0fora0to16forb0to25forc0to30if3*a+2*b+1*c50ii+1thisform.list1.addlistitem(str

这程序有什么错?
i=0
for   a=0   to   16
for   b=0   to   25
for   c=0   to   30
if   3*a+2*b+1*c=50
i=i+1
thisform.list1.addlistitem(str(a),i,1)
thisform.list1.addlistitem(str(b),i,2)
thisform.list1.addlistitem(str(c),i,3)

endif
endfor
endfor
endfor
分别输出   a,b,c可是只出现a.
为什么

[解决办法]
设置COLUMN COUNT:3
COLUMN WIDTH:100,100,50
ROWSOURCETYPE:1
ROWSOURCE:为空
程序没有问题