社区
VB基础类
帖子详情
List1.ListItems(k).ListSubItems(5).Text = "已出货" 为什么会出错?
sjtuyjc
2003-11-28 09:48:18
报错为:索引超出边界
...全文
132
5
打赏
收藏
List1.ListItems(k).ListSubItems(5).Text = "已出货" 为什么会出错?
报错为:索引超出边界
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
simanh
2003-11-29
打赏
举报
回复
k和5可能超出了界限,by the way,记不清listsubitems是不是应该是subitem?
easydone
2003-11-29
打赏
举报
回复
如果k和5没有越界的话,将
List1.ListItems(k).ListSubItems(5).Text = "已出货"
改为:
List1.ListItems(k).SubItems(5) = "已出货"
wumy_ld
2003-11-28
打赏
举报
回复
k和5可能超出了界限,单步调试一下。
wzh0324
2003-11-28
打赏
举报
回复
跟踪一下程序,看看k,5两个值是不是超出了索引边界,还有listitems是不是应该是listitem?listsubitems是不是应该是subitem我也有些记不清了,你自己试试吧^_^
captainivy
2003-11-28
打赏
举报
回复
超出界限了
json-lib-2.4 jar 程序文件
json jar 包,java 开发Ajax ,封装json格式的jar包工具
list
.get(0) 和
list
.get(i)的区别
List
<People>
list
=newArray
List
<People>();for(inti=0;i<
list
.size();i++){Peoplepeople=
list
.get(i);}//当i=0时,取得是
list
集合中第一个元素,//当i=1时,取得是
list
集合中第二个元素,......//当i=i时,取得是
list
集合中第i+1...
HIbernate login this.hibernateTemplate.find("from User where username=? and password=?",new Object[
package cn.itheima01.oa.dao.impl; import java.util.
List
; import javax.annotation.Resource; import org.springframework.orm.hibernate3.HibernateTemplate; import org.springframework.orm.h
File中
list
方法&
list
Files方法
File中
list
方法&
list
Files方法 1.
list
方法 1.无参的方法
list
() 返回类型:字符串数组 功能:返回一个文件夹下的一级子目录和文件名,不带父级目录的名称 代码块: File file1 = new File("D:\\0XYZ"); String [] str = file1.
list
();
List
li = Arrays.as
List
(str); System.out.println(li); 2.有参的方法
list
(FilenameFilt
解决Malformed line 1 in source
list
/etc/apt/sources.
list
.d/google-chrome.
list
(type)
昨天我安装chrome浏览器时,最后源出了点问题,导致apt-get update不能使用了,报错如下:```neal@ubuntu:~$ apt-get update E: Malformed line 1 in source
list
/etc/apt/sources.
list
.d/google-chrome.
list
(type) E: The
list
of sources could no
VB基础类
7,789
社区成员
197,583
社区内容
发帖
与我相关
我的任务
VB基础类
VB 基础类
复制链接
扫一扫
分享
社区描述
VB 基础类
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章