程序中用了一个listview控件,用来显示程序运行消息。在显示时,使用了如下代码:
if LvUser.Items.Count >= 100 then
        LvUser.Items.Delete(0);
这样写,会不会有问题,比如产生list out of bounds()的错误?