如何从列表框中删除空白项目? [英] How to remove blank items from listbox?
本文介绍了如何从列表框中删除空白项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨我有问题
如何从列表框中删除空白项目?
我的意思是我想制作只从列表框中删除空白项目的按钮
hi i have qusetion
how to remove ongy blank items from listbox?
I mean I wanna make button that only remove blank items from listbox
推荐答案
连接,
只需遍历列表中的元素,如果有空白,则删除它。
Connect,
Just loop over the elements in the list, and if any is blank, remove it.
展开 | 选择 | Wrap | 行号
我假设数据来自数据库。从数据库中检索数据时,您可能无法返回空白行。
I''m assuming the data is coming from a database. You could just not return the blank rows when retrieving the data from the database.
无法正常工作
这篇关于如何从列表框中删除空白项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文