列表框编程的问题 [英] Problems with List box programming
本文介绍了列表框编程的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道如何从包含多个项目的列表框中删除项目。如果选择第二项或第三项要删除,我会收到错误。
请帮助我
Hi,
I would like to know how an item can be removed from a list box which contains more than one item. I''m getting an error if select 2nd or 3rd item for removal.
Please help me
推荐答案
请尝试使用
please try to use
展开 | 选择 | Wrap | 行号
请记住索引从0到1比项目数少。因此,如果您要删除最后一个,则可能使用的数字太高。你得到什么错误?这是什么版本的VB?
Remember that the index goes from 0 to one less than the number of items. So if you are trying to remove the last one, you may be using too high a number. What error do you get? And what version of VB is this?
您好Mr.Killer42,
我正在使用VB 6.0并且收到的错误消息为 ;运行时错误381和无效的属性数组索引。
问候
Hi Mr.Killer42,
I''m using VB 6.0 and is getting the fault message as" run time error 381 and invalid property array index.
regards
这篇关于列表框编程的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文