CB 10.2 FMX TreeView控件AlternatingRowBackground属性导致Argument out of range错误 [问题点数:0分]

Bbs3
本版专家分:685
Blank
红花 2019年2月 C++ Builder大版内专家分月排行榜第一
2017年12月 C++ Builder大版内专家分月排行榜第一
2016年12月 C++ Builder大版内专家分月排行榜第一
2016年11月 C++ Builder大版内专家分月排行榜第一
2016年9月 C++ Builder大版内专家分月排行榜第一
2016年8月 C++ Builder大版内专家分月排行榜第一
结帖率 95.3%
Bbs3
本版专家分:685
Blank
红花 2019年2月 C++ Builder大版内专家分月排行榜第一
2017年12月 C++ Builder大版内专家分月排行榜第一
2016年12月 C++ Builder大版内专家分月排行榜第一
2016年11月 C++ Builder大版内专家分月排行榜第一
2016年9月 C++ Builder大版内专家分月排行榜第一
2016年8月 C++ Builder大版内专家分月排行榜第一
Specified argument was out of the range of valid values.
一个页面有两个gridviewid分别为1和2,当SL里面这个人登陆时1里面第九个字段不显示2正常显示,当SA登陆时1里面第八个字段不显示2正常显示。现在报“Specified argument was out of the <em>range</em> of valid values”这个错,根据log记录是1里面绑定时出的错1有onrowcreate这个方法,rn里面当SL登陆row.cells[8].visible=false;类似这句话出了错,但运行时1是正常显示,2这个gridview报了这个错.求解决???我是初学者,望给位帮忙解决一下,谢谢
.net+oracle: Specified argument was out of the range of valid values
经常遇到这个问题:通常是重新启动一下webserver就好了。rnException Details: System.<em>Argument</em>OutOfRangeException: Specified argument was out of the <em>range</em> of valid values. Parameter name: Hour, Minute, and Second parameters describe an unrepresentable DateTime.rnrn不知道是什么原因,如何解决??rnrn
specified argument was out of the range of vaild values
在做windows mobile智能手机端项目时,出现了此问题,希望高手给予解答。rn用google 翻译了一下为:rn指定的参数已超出有效值的范围。
delphi FMX控件的常见属性
None        无       尺寸位置可调,但不随着窗体尺寸变化。组件被保持在它的父类放置的位置,即窗体或面板,它是<em>属性</em>的缺省值。   Top         顶       组件被移动到窗体的顶端,并且被重新决定大小以充满窗体的宽,组件的高度不会受到影响。   Left        左       剩余空间的左部分填满,强调剩余部分。组件被移动到窗体的左边,并且被重新设定大小以充
iocomp.bpl for delphi 10.2 or cb
对于程序员来说,要凭一己之力开发出漂亮逼真的工控仪表和工控图表是非常耗时间和精力的,那么使用专业的第三方<em>控件</em>就是不错的选择,不仅节约开发时间,降低了项目风险,最重要的是第三方<em>控件</em>写的程序更专业,工控图表图像更精细。笔者认为最好用的工控<em>控件</em>当属 Iocomp 和 ProEssentials。下面笔者对这两个工控<em>控件</em>进行了简单的对比评测: Iocomp工控仪表 Iocomp公司可以说是工业仪表盘<em>控件</em>的龙头老大,在国内工业自动化集成商中,尤其是OPC项目,采用Iocomp产品进行仪表设计的项目越来越多。Iocomp旗下一共有Iocomp .Net WinForms、Iocomp .Net Compact Framework、Iocomp ActiveX/VCL三个产品,用得最多的是最后一个。每个产品分标准版(standard)、专业版(Pro)、绘图版(Plot)、终极版(Ultimate)四个版本,开发者可以根据自己的需要进行选择。下面重点跟大家介绍下Iocomp ActiveX/VCL。 优点: 丰富的VB例程使用户能够快速的掌握各种<em>控件</em>的使用方法。 运行于Windows7/NT4.0 等32位Windows平台,目前尚未支持Windows 8。有效的利用了32位Windows平台的多任务能力,可达到工控软件的实时要求。 全部<em>控件</em>均由Delphi编写,代码短小精悍,执行快速、占用系统资源少。完美的Windows图形函数调用使得各<em>控件</em>在动画时绝无一般软件屏幕刷新时产生的闪烁现象。 有效的补充了Visual Basic等开发工具应用于工控环境的不足,使Visual类软件更好的应用于工业控制中。 可应用于科学、工程、医疗、石油、天然气、半导体、工厂自动化、航空航天、军事、电信、建筑等领域。所有的Iocomp<em>控件</em>都是基于OPC的,使用它开发工业类软件可以事半功倍。 与Windows原有<em>控件</em>的兼容良好,使用户的软件开发难度降到最低。用户可以方便的利用各种Visual类软件在数据库处理、报表打印以及系统调用和网络上的优势等开发出功能强大的工业控制软件。 它不同于各种其它工控组态软件,无须学习专用语言和复杂的函数调用。用户只要会自己擅长的Basic、Pascal等即可在Visual Basic、Delphi等开发环境下快速的开发出各种工业控制软件。 界面效果丰富。几十余种<em>控件</em>(包括各种形式的仪表、调节旋钮、指示灯、LED数码管等)可以根据具体应用自定义各种<em>属性</em>而演变为几十种界面表达方式。 bpl格式,一键安装!
Specified argument was out of the range of valid values. Parameter name: index
/*采用动态添加列的方法产生一个GridView后,分页时出现上述<em>错误</em>:Specified argument was out of the <em>range</em> of valid values. Parameter name: index*/rnrnGridView gv1 = new GridView();rnBoundField bf = new BoundFiled();rn...rngv1.Columns.Add(bf);rn...rn//下面两行注释掉后正常。rngv1.AllowPaging = true; rngv1.PageSize = 2;rnrngv1.DataBind();
java.lang.StringIndexOutOfBoundsException: String index out of range: -1错误
[img=https://img-bbs.csdn.net/upload/201704/14/1492166177_246376.png][/img][img=https://img-bbs.csdn.net/upload/201704/14/1492166190_367039.png][/img]rnrn //向服务器获取根目录rn public static String getRootList() throws Exceptionrn String json = "\"type\":\"getRootList\"";rn output.write(json.getBytes());rn output.flush();rn byte[] b = new byte[1024];rn int len = input.read(b);rn json = new String(b,0,len);//字符串进行转化rnrn Config.ROOT_LIST_JSON_STR = json;rn return json; rn rn[img=https://img-bbs.csdn.net/upload/201704/14/1492166266_975276.png][/img]rntry rn String json_str = Config.service.getRootList();rn System.out.println(json_str);rn JSONObject json = JSONObject.fromObject(json_str);//对json的解析rn rn JSONArray jsonArray_mulu = json.getJSONArray("mulu");rn JSONArray jsonArray_files = json.getJSONArray("files");rn rn this.removeAll();rn rn int count = jsonArray_mulu.size()+jsonArray_files.size();rn rn for (int i = 0; i < jsonArray_mulu.size(); i++) rn JSONObject mulu = jsonArray_mulu.getJSONObject(i);rn rn this.add(new FileJPanel(mulu.getString("rdid"), mulu.getString("did"), "DIR", mulu.getString("dname")));rn rn rn for (int i = 0; i < jsonArray_files.size(); i++) rn JSONObject file = jsonArray_files.getJSONObject(i);rn this.add(new FileJPanel(file.getString("did"), file.getString("fid"), "FILE", file.getString("fname")));rn rn rn rn this.setPreferredSize(new Dimension(508,(count/5+(count%5==0?0:1))*135));rn catch (Exception e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn javax.swing.JOptionPane.showMessageDialog(this.getParent(), "网络异常,请稍后再试");rn rn相关的代码贴出来了,但不是很理解这个数组怎么就越界了。也不知道怎么去修改
怎么会出现Subscript out of range 错误呢?
我在用LyfUpload.UploadFile组件时,程序只要运行到 rn Set obj = Server.Createobject("LyfUpload.UploadFile")rn 这句话就出错了,<em>错误</em>信息是Subscript out of <em>range</em>。这个组件在其他的一个页面中用到过,而且这个页面上传文件都没有问题,是不是不能重复使用这个组件?rn
这是什么错误?“Subscript out of range
我的vb程序实现从数据库中读取数据然后写入一个excel文件,然后将由这些数据生成的图表导出成png文件。每小时的15分运行一次,但是每天0:15运行时总是会报错“Subscript out of <em>range</em>”,其他时间都没有这个问题。rn每小时的30分有一个检查该程序(A)是否生成的check程序(B)会运行,如果发现png文件不是这一小时生成的就把A程序再运行一遍。0:30运行A程序时就没有报错。rn有时白天也会报错,但是重新运行一遍后又没有问题了。这是怎么回事呢?
使用vector出现的错误 subscript out of range
#includern#includern#includernrnusing namespace std;rnrnvoid main()rnrn vector a;rnrn a[0]="aaaaaa";rn a[1]="xxxxxx";rnrn cout<
数据库错误Numeric value out of range
修改数据source之后重新检索,出现<em>错误</em>提示:rnSelect error:SQLSTATE=22003rn[Sybase][ODBC Driver][Adaptive Server Anywhere]Numeric value out of <em>range</em>:value **** out of <em>range</em> for destinationrn请问是什么原因?
错误:Number is out of range请指点
Form上有多个数据集(Table),其中一数据集Active:=True时rn报Number is out of <em>range</em><em>错误</em>,请高手指点。
hex escape sequence out of range什么错误
定义一个结构体 rntypedef struct s_str_LANGUAGErnrn const char *cLang[2];rnLANGUAGE, *PLANGUAGE;rnrnrn其中一个值为rnconst s_str_LANGUAGE DISP_STR_NAME[] = rn " VSWR\x09 DTF VSWR\x09Cable Loss\x09 DTF\nReturn Loss\x09 DUAL\x09Active DISP\x09 More",rn "驻 波 比\x09故障定位\n驻 波 比\x09电缆损耗\x09故障定位\n回波损耗\x09双 通 道\x09活动窗口\x09下 一 页" ,rn;rn就报上述<em>错误</em>,在线等
value of field'count(*)'is out of range 错误?
使用adoquery+datasetprovider+clientdataset+datasource时rnadoquery.sql.text=select * from table1 正常rnadoquery.sql.text=select count(*) from table1 抛出如题<em>错误</em>,请高人帮忙!!!
错误:jump out of range ,应该怎样解决?
<em>错误</em>:jump out of <em>range</em> ,应该怎样解决?
能不能 catch Vector 的 out of range 错误呢?
catch 不是catch<em>错误</em>的吗,能不能catch 到Vector 的 out of <em>range</em> <em>错误</em>呢? 比如 vec.size() == 5 却用了 vec[20]
LyfUpload错误:LyfUpload (0x80020009) Subscript out of range
看到刘玉峰写的lyfupload组件,我将他的demo测试是正确的 rn但是我将demo1中的demo1.htm和demo1.asp合并成demol1.asp的时候,就是我将上传的rndemo1.htm和demo1.asp合并在一个页面里面处理的时候 rn就出现<em>错误</em> rnLyfUpload (0x80020009) rnSubscript out of <em>range</em> rn就是这句话出现了<em>错误</em> rnSet obj = Server.CreateObject("LyfUpload.UploadFile") rn我也是成功注册了他的lyfupload.dll rn但是不知道怎么回事还是<em>错误</em>的? rn麻烦各位兄弟解决一下?
String index out of range: -6 的错误
初次使用hibernate,然后将一个页面中的数据插入到数据库中时,就阴魂不散的发生了这个<em>错误</em>,我插入的值只是一位:“1”,却总是报这个错,有谁也碰到过这个问题吗?
vector subscript out of range
小弟用VC6.0编写了个DLL(DLL有多线程)应用程序调用它没有任何问题,但是,当用VS2005重新编译产生DLL,应用程序EXE调用出错了 Expression:vector subscript out of <em>range</em>。我试图用抛出异常来查找,但是不知道该抛出什么异常 。rnrn附:VS2005编译产生的DLL(debug),VC6.0产生的应用程序EXE(debug)rn请问VC6.0 和VS2005 的STL实现有区别吗? 还是其他原因?rnrn
求助--OUT OF RANGE
本人电脑时常启动变青屏,显示“OUT OF RANGE”字样,须再次启动才正常;请问这是显示器的问题吗?如何解决?rn本人电脑设定为大字体,不过换成小字体好象也一样;另外就是我通常不关显示器的,这会有问题?rnrn
急死了,----------------------------------------------Subscript out of range
aspSmartUpload 錯誤 '800a0009' rnrnSubscript out of <em>range</em> rnrndownload.asp, 列5 rnrn
subscript out of range
创建对象是出现这个<em>错误</em>,我没用下标阿,这是怎么回事、rnrn出事的地方是rnset obj=server.createobject("Lyfupload.uploadFile")rn
string subscript out of range
我使用rntemp.erase(temp.end()-1);rn后编译时没错,运行时出现RT<em>错误</em>!高手帮忙啊!
"DBGrid index Out of Range "
Query1->DisableControl();rnfor(int i=0; iAppend();rn Query1->FiledByName("f1")->Value="sss";rn Query1->FiledByName("f2")->Value="sss1";rn Query1->Post();rnrnQuery1->EnableControl();rnrn为什么加上 :rnQuery1->DisableControl();rnQuery1->EnableControl();rn时有时候会出现"DBGrid index Out of Range " <em>错误</em>!rn
Subscript out of range
LyfUpload <em>错误</em> '80020009' rnrnSubscript out of <em>range</em> rnrn/金和田/manager/doupload.asp,行 15 rnrnrn代码如下:rnrnrnrnrn rn 文件上传rnrnrnrnrnrnrn rn rnrnrnrn第15行是 set uploadphoto = Server.CreateObject("LyfUpload.UploadFile")rnrn请各位帮忙解决,小弟很急!!!
Java out of range 问题
import java.util.*; rnimport java.io.*;rnrnpublic class test rn public static void main(String args[]) rn String M="Calif";rn rn Random rng=new Random();rn rn String K = "";rn StringBuffer my = new StringBuffer(M);rn StringBuffer my2 = new StringBuffer(K);rn System.out.println("length of this String is "+my.length());rn int Length=my.length();rn for(int r=0;r
String out of range : 1303128
engineurl:http://127.0.0.12:8888/transrnparameterKey:config=BR&Code=010&x1=116.810918&y1=39.912719&x2=121.6018793&y2=38.8028643&routeType=0&language=cn&ver=2.0rnjava.lang.StringIndexOutOfBoundsException: String index out of <em>range</em>: 1303128rn at java.lang.String.checkBounds(String.java:401)rn at java.lang.String.(String.java:442)rn at com.mapabc.sis.server.core.service.impl.BusRouteServiceImpl.byteToString(BusRouteServiceImpl.java:313)rn at com.mapabc.sis.server.core.service.impl.BusRouteServiceImpl.format2NewBusRouteBeans(BusRouteServiceImpl.java:183)rn at com.mapabc.sis.server.core.service.impl.BusRouteServiceImpl.invokeService(BusRouteServiceImpl.java:72)rn at com.mapabc.sis.server.core.service.CoreServices.processRequest(CoreServices.java:192)rn at com.mapabc.sis.server.core.service.CoreServices.doGet(CoreServices.java:343)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.mapabc.sis.server.core.security.SecurityFilter.doFilter(SecurityFilter.java:279)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)rn at com.mapabc.sis.server.core.access.LBSServer.urlforward(LBSServer.java:196)rn at com.mapabc.sis.server.core.access.LBSServer.doGet(LBSServer.java:93)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:662)rnjava.lang.NullPointerExceptionrn at com.mapabc.sis.util.coordsfactory.action.BusRouteCoords.invokeCoords(BusRouteCoords.java:42)rn at com.mapabc.sis.server.core.service.CoreServices.processRequest(CoreServices.java:211)rn at com.mapabc.sis.server.core.service.CoreServices.doGet(CoreServices.java:343)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.mapabc.sis.server.core.security.SecurityFilter.doFilter(SecurityFilter.java:279)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)rn at com.mapabc.sis.server.core.access.LBSServer.urlforward(LBSServer.java:196)rn at com.mapabc.sis.server.core.access.LBSServer.doGet(LBSServer.java:93)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:662)rnsum time=9556rnrnrn我在运行服务时tomcat出现如下提示,但是服务并没发生中断之类的<em>错误</em>。这个问题是什么原因<em>导致</em>呢。该如何解决呢
subscript out of range原因
引用“microsofe runtimr scripting”,读写文件,加密一个应用程序。rn本地运行时没有问题,生成.exe文件交给用户,运行提示“<em>错误</em>9,subscript out of <em>range</em>”rn请教大虾,可能的原因是什么,如何解决,谢谢!!!
vector out of range
Hi ,大家好,我是新来的,请多多关照呀。rn在快速排序算法中,出了点问题,请那位高人指点指点,在此先谢了!rn下面是程序原文和问题:rn//quickSort.hrnrn#ifndef QUICKSORT_Hrn#define QUICKSORT_Hrn#include rnrnusing namespace std;rnrntemplaternvoid quickSort( vector a )//对队列a进行快速排序rnrn quickSort( a, 0, a.size()-1 ); //调用重载函数rnrnrntemplaternvoid quickSort( vector a, int left, int right )rnrn if( left>=right ) //如果待排长度为0或1,无需再排rn return;rnrn int pivot=partition( a, left, right ); //进行划分rn quickSort( a, left, pivot-1 ); // 对分割点左半部分进行快速排序rn quickSort( a, pivot+1, right ); //对分割点右半部分进行快速排序rnrnrntemplaternint partition( vector a, int left, int right )rnrnrn int pivot;rn Comparable x=a[ left ]; //以第一个元素为基准rn int i=left;rn int j=right+1;rnrn while( true )rn while( a[ ++i ]x ); //右边比基准大的不动rn if( i>=j ) //划分完毕时退出rn break;rn swap( a[ i ], a[ j ] ); //此时,a[ i ]>=x, 且a[ j ]rn#include rnrnusing namespace std;rnrnint _tmain(int argc, _TCHAR* argv[])rnrn vector< int > v( 9 );rn rn int arr[ 9 ]= 90, 3, 34, 4, 45, 5, 56, 6, 67 ;rn for( int i=0; i<<
Number is out of range问题
rn以下数据有可能是整数、小数相加。rncdsData.FieldByName('Total_Count').AsFloat :=cdsData.FieldByName('Total_Count').AsFloat+1;rnrn经常出现Number is out of <em>range</em>问题
slice bounds out of range
[img=https://img-bbs.csdn.net/upload/201705/27/1495850320_223860.png][/img]rnrnb = [0, 0, 0, 0, 0]rnb[2:] 为什么会报错, 不应该是 b[2:] = [0, 0, 0] ?
Bits index out of range
对 Delphi 5 ClientDataSet, Edit操作, Post时报错 Bits index out of <em>range</em>, insert时正常, 不知是何原因?
Recordindex out of range
很简单的一个过程,就是使用TcxDBNavigator<em>控件</em>对一个数据集进行操作控制,在点击删除按钮后出现<em>错误</em>提示‘Recordindex out of <em>range</em>’,请各位帮帮忙
range"">dbgird控件---->"grid index out of range"
我在用dbgird<em>控件</em>时, 当dbgird的宽度变大到一定程度, 当点击insert键插入信息时就出错,信息如下:rn"grid index out of <em>range</em>"  如何解决???什么原因???
显示器out of range
文档中将笔者调试成功的一个显示器显示out of <em>range</em>的案例,希望对纠结于此的人有所帮助。 GOOD LUCK!
关于out of range的问题
我用ClientDataSet执行下边的sql语句rnselect max(SHOW_SEQUENCE)as s from modulern未报错rn但是付值时temp:=temp_cds.fieldbyname('s').AsString;rn报错 out of <em>range</em>rn这是怎抹回事
grid index out of range
beginrn dmData.adoQCode.open;rn dmData.adoQCode.Append;rn dmData.adoQCode.FieldByName('Type').AsString := cbbType.Text;rn dmData.adoQCode.FieldByName('Value').AsString := edtValue.Text;rn dmData.adoQCode.FieldByName('Mem').AsString := edtMem.Text;rn dmdata.adoQCode.Post;rn end;rn我用的是DBgrid和Access库,在添加一条记录时报出grid index out of <em>range</em> 的<em>错误</em>,请各位知道的加以指点
java.lang.IllegalArgumentException: pointerIndex out of range
[img=https://img-bbs.csdn.net/upload/201403/14/1394766499_455123.png][/img]rn重写的ViewPagernonInterceptTouchEvent事件rn[code=java]int down=0;rn float dx=0;rn @Overridern public boolean onInterceptTouchEvent(MotionEvent ev) rn System.out.println("MyViewPage onInterceptTouchEvent");rn tryrn if(getPosition()==0&&ev.getY()0&&*/getCurrentItem()==0) rn if(ev.getY()0)rn return false;rn rn rn break;rn rn System.out.println("dx"+Math.abs(dx)+"");rn if(Math.abs(dx)>15)//就是这里造成的rn return true;rn elsern return false;rn catch(Illegal<em>Argument</em>Exception ex) rn ex.printStackTrace();rn return false;rn rn [/code]
index out of range exception??
index out of <em>range</em> exception??rnrn[color=#FF0000]error code:rnrn if (!Convert.IsDBNull(reader["Name"]))rn username = reader["Name"].ToString();[/color]rnrnrn2. source code:rnrn public bool LoginUser(string username,string pwd)rn rn rn bool exists = false;rn SqlParameter[] parms = new SqlParameter[2];rn parms[0] = new SqlParameter("@name", SqlDbType.NVarChar, 100);rn parms[1] = new SqlParameter("@password", SqlDbType.NVarChar, 100);rn parms[0].Value = username;rn parms[1].Value = pwd;rn SqlDataReader reader = DbTools.ExecuteReader("LoginUserProce", parms);rnrn if (reader.Read())rn rn[color=#339966] exists = true;rn if (!Convert.IsDBNull(reader.GetValue(2)))[/color]???????????????rn username = reader.GetValue(2).ToString();rn if (!Convert.IsDBNull(reader["password"]))rn pwd = reader["password"].ToString();rn rn rn reader.Close();rn return exists;rnrn rnrnrn
PTS is out of range
RTP 分别实时打包发送H264,G711。有实现RTCPrn用VLC接收播放,但每隔一段时间就会打印一连串下面的东西,而且播放的时间越长就出现的越频繁rnmain warning:PTS is out of <em>range</em>(-23...),dropping bufferrnrn有时还打印rnmore than 5 seconds of late video ->dropping frame(computer too slow?)
currency value is out of range
toolsprdpropor*(tv_query_2.latest_cost)[color=#FF0000]*[/color](tv_query_3.latest_cost*tv_query_3.actualcapacity) as toolsprdproporrn做乘法没问题rnrn下面做除法就有问题了rntoolsprdpropor*(tv_query_2.latest_cost)[color=#FF0000]/[/color](tv_query_3.latest_cost*tv_query_3.actualcapacity) as toolsprdproporrntv_query_2与tv_query_3都是零时表rnlatest_cost在SQL里面是money类型,toolsprdpropor是decimal类型,actualcapacity是int类型rnrn所以我就不太明白怎么弄了
record out of range??
请为 record out of <em>range</em> <em>错误</em>是怎么产生的???
out of range 怎么解决?
装的是fc4,用的是图形界面,可能是设置显示的时候出错,现在进入系统不到3秒种,显示器就显示out of <em>range</em>,我该怎样设置才能设置成合适的频率
input标签type属性range控件
从0基础讲解网站html的开发,主要讲解各类html标签的含义和用法,同时讲解开发工具dreamweaver的基础使用。
Mybatis批量插入index out of range错误(较偏的错误
批量插入,<em>错误</em>是何,拒绝转载!前言原因改进 d 前言 往往我们看到网上关于各类关于批量插入报这种<em>错误</em>的文章都是传入的集合为null,或者是参数获取不对等等,但是在开发的时候同事遇到了这种类型的<em>错误</em>,我一直以为是网上那些博客那些原因造成的,于是,两只眼睛一直盯着代码看来许久都没有找出什么问题。那是什么问题呢? 原因 是由于项目中用的是sharding-jdbc来进行数据库连接,而sharding-j...
CB 2010 range check error
我用indy10的idsmtp,在idsmtp->send(Msg)时候如果把build with runtime lib 钩打上就是可以的!如果去掉这个就会提示<em>range</em> check error,不知道是何原因!rnrn补充,只有在Msg->subject=""在这里输入中文的时候才会<em>错误</em>,不解的是为什么打上钩就是ok的呢!
Treeview控件属性问题?
我正在做一个项目,其中用到了Treeview<em>控件</em>,有那位大师能告诉我关于Treeview的有关<em>属性</em>?不胜感激。QQ:248487400.谢谢!!
One of arguments' values is out of range
做的是智能剪刀的算法,其中加进Live-Wire 2-D DP graph search搜索最优路径时,加入了以下函数SearchOptimalPath()和ifActivePixelsEmpty(),可是一运行就出现 one of arguments' values is out of <em>range</em> (index is out of <em>range</em>) in function cvPtr2D,c:\\的<em>错误</em>,求各位路过的大神帮帮我看一下这段代码错在哪了[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img]rn[img=https://img-bbs.csdn.net/upload/201404/18/1397810670_473139.jpg][/img]rn[code=c]//Live-Wire 2-D DP graph searchrnvoid CSegmentDlg::SearchOptimalPath()rnrnrn float tempTotalCost;rn int m,n,i,j;rn while (!ifActivePixelsEmpty())//While still points to expandrn rn //Remove minimum cost pixel q from active list.rn double minCost=0;rn // int m,n;rn for(i=0;i=0&&i=0&&j=0&&mx=0)rn rn if(ifPainting==false&&(SeedPoint.x==0||SeedPoint.y==0))rn rn ifPainting=true;rn SeedPoint=point;rn FreePoint=point;rn SeedPixel=cvGet2D(TheResult,mx,my);rn ActivePixels[mx][my]=1;rn SearchOptimalPath();rn rn rn[/code]
LINUX下液晶显示器显示“out of range”?
我的显示器是Benq FP557,装了RedHat linux7.3后,进入X-window登陆窗口后,马上就显示“out of <em>range</em>”,然后一直显示这个提示。不过桌面图标显示正常。在控制台(提示符)下不会出现这种情况。我的液晶显示器分辨率是1024*768,这是支持的。我装了个Mandrake Linux9.0,问题还是出现,请各位高手指点?
奇怪的 String index out of range
int chars = newsform.getContent().length(); //总字符数 intrn int PerPage = 1000; //每页要分的字符数rn int allpage; //总页数rnrn allpage = (chars + PerPage - 1) / (PerPage); //取得总页数rn rn String str[] = new String[allpage];rnrn String news = getStr(newsform.getContent());rn System.out.println(allpage+"页");rn System.out.println(chars+"个字符");rn for (int i = 0; i < allpage; i++) rn rn if (i==allpage-1) rn rn str[i] = news.substring((i * PerPage));rn System.out.println(str[i].length());rn rn else rn rn str[i] = news.substring((i * PerPage), ((i + 1) * PerPage));rn System.out.println("第"+i+"次"+str[i].length());rn rnrn rn rn打印出:rn6页rn5191个字符rn第0次1000rn第1次1000rn第2次1000rn第3次1000rnrn这是<em>错误</em>:String index out of <em>range</em>: 5000rnrn帮我看下怎么会错的?
String index out of range: -1
String index out of <em>range</em>: -1rnrn是怎么回事啊 rnrn谢谢
Ubuntu安装过程中出现Out of Range
Ubuntu安装过程中出现了out of <em>range</em>,如何解决。
list index out of range 求解
import os,re,linecacherndef fun(path):rn for root,dirs,files in os.walk(path):rn for fn in files:rn rootpath = os.path.join(root,fn)rn filetype=fn.split('.')[1]rn if filetype in['xml']:rn print(rootpath) rn new=(linecache.getline(rootpath,4)).rstrip()rn print (new)rn #print (type(new))rn newsp=new.split('.')rn #print (type(newsp))rn print(newsp[1])rn f= open(rootpath,'r+')rn d=f.read()rn open(rootpath, 'w').write(re.sub(r'a', 'b', d))rn f.close()rn else:rn continuernfun(r'C:\wmpub')rnrnrnrnC:\wmpub\a.xmlrnrnTraceback (most recent call last):rn File "C:\Documents and Settings\Administrator\桌面\test.py", line 21, in rn fun(r'C:\wmpub')rn File "C:\Documents and Settings\Administrator\桌面\test.py", line 14, in funrn print(newsp[1])rnIndexError: list index out of <em>range</em>rn>>>
求助:string subscript out of range
新手求助!rn//Main.cpprn#include rn#include rn#include rn#include rnint main()rnrn using namespace std;rn ofstream outFile;rn outFile.open("可修复装备.txt");rn ifstream inFile;rn inFile.open("Commodity.ini");rn if (!inFile.is_open())rn rn cout <<
Visual Studio2017 vector out of range
vector多的时候一个一个查实在是太麻烦了,有没有哪里能够直接看到是哪一行的vector出错了啊?
Row index out of range问题
public class Table1 extends JFramern String rid[] = new String[100];rn int count = 0;rn /*rn * public static void main(String a[]) new Table1(); rn */rn rn public void center(JFrame frame) rn double x = frame.getWidth(); // 居中困难rn double y = frame.getHeight();rn Toolkit kit = Toolkit.getDefaultToolkit();rn Dimension screenSize = kit.getScreenSize();rn double xx = screenSize.getWidth();rn double yy = screenSize.getHeight();rn frame.setLocation((int) (xx / 2 - x / 2), (int) (yy / 2 - y / 2));rn rn public Table1() rn JPanel zuida = new JPanel(new BorderLayout(0, 10));rn JPanel jp1 = fangzi();rn JPanel jp2 = dingdan();rn jp2.setBorder(BorderFactory.createTitledBorder("订单信息"));rn JTabbedPane tp = new JTabbedPane();rn tp.addTab("房间预定", jp1);rn tp.addTab("订单信息", jp2);rn // zuida.add(jp1);rn zuida.add("North", tp);rn JFrame frame = new JFrame("酒店");rn frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);rn //zuida.setBackground(new Color(102,204,255)); 设置背景颜色rn zuida.setBorder(new EmptyBorder(5, 5, 5, 5));rn frame.setContentPane(zuida);rn frame.setVisible(true);rn frame.pack();rn center(frame);rn System.out.println("123");rn // frame.setLocationRelativeTo(null);//这个也是居中的方法rn rn JPanel fangzi() rn JTable jiu = jiudian();rn JTable table = order();rn JScrollPane pane = new JScrollPane(jiu); // 加滑轮rn JPanel panel = new JPanel();//rn JPanel panel2 = new JPanel(new FlowLayout(FlowLayout.CENTER, 30, 10));rn JPanel panel3 = new JPanel(new GridLayout(1, 10));rn JPanel panel4 = new JPanel(new BorderLayout(0, 10));rn panel.setPreferredSize(new Dimension(600, 400));rn panel.setLayout(new BorderLayout());rn JButton b1 = new JButton("预订");rn JButton b2 = new JButton("加至购物车");rn JButton b3 = new JButton("预定多个");rn JButton b4 = new JButton("生成订单");rn panel2.add(b1);rn panel2.add(b2);rn panel2.add(b3);rn panel2.add(b4);rn ButtonListener bListener = new ButtonListener(jiu,rid);rn rn JButton b5 = new JButton("查询空房");rn panel3.add(b5);rn rn rn bListener.jPanel = panel;rn bListener.jPanel2 = pane;rn ButtonListener bListener2 = new ButtonListener(table);rn b5.addActionListener(bListener2);rn rn b1.addActionListener(bListener);rn b2.addActionListener(bListener);rn b3.addActionListener(bListener);rn b4.addActionListener(bListener);rnrn panel.add("Center", pane);rn panel.add("South", panel2);rn panel.add("North", panel3);rn panel.setBorder(BorderFactory.createTitledBorder("房间信息"));rn rn rn rn return panel;rn rn JPanel dingdan() rn JTable dingdan = order();rn JScrollPane pane = new JScrollPane(dingdan);rn JPanel jp10 = new JPanel(new BorderLayout());rn jp10.add("Center", pane);rn JButton b1 = new JButton("确定");rn JButton b2 = new JButton("刷新");rn jp10.add("South", b1);rn jp10.add("North",b2);rn ButtonListener bListener1 = new ButtonListener(dingdan);rn b1.addActionListener(bListener1);rn b2.addActionListener(bListener1);rn return jp10;rn rn JTable order() //生成订单的表格rn Vector lieV = new Vector();rn Vector hangV = new Vector();rn try rn Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");rn Connection con;rn con = DriverManager.getConnection("jdbc:sqlserver://localhost:1433;DataBaseName=Hotel", "sa", "123");rn PreparedStatement statement = con.prepareStatement("Select * from 订单 where Userid =? ");rn statement.setString(1, new MainClass().getname());rn ResultSet rs = statement.executeQuery();rn while (rs.next()) rn Vector hangv = new Vector();rn hangv.add(Integer.parseInt(rs.getString(1)));rn hangv.add(rs.getString(2)); rn hangv.add((rs.getString(3))); rn hangv.add((rs.getString(4))); rn hangv.add((rs.getInt(5))); rn hangv.add((rs.getString(6))); rn hangv.add((rs.getInt(7)));rn hangV.add(hangv);rn rn catch (Exception e) rn System.out.println("Error" + e);rn rn final Object Lie[] = "订单编号", "用户", "房间编号", "订单日期","数量", "状态","价格" ;rn lieV.add("订单编号");rn lieV.add("用户");rn lieV.add("房间编号");rn lieV.add("订单日期");rn lieV.add("数量");rn lieV.add("状态");rn lieV.add("价格");rn rn //JTable jiu = new JTable(row, Lie); // 建立表格rn DefaultTableModel tableModel = new DefaultTableModel(hangV, lieV);rn JTable jiu = new JTable(tableModel); rn jiu.setPreferredScrollableViewportSize(new Dimension(400, 300));rn jiu.setRowHeight(30);rn jiu.setRowMargin(5);rn jiu.setRowSelectionAllowed(true);rn jiu.setSelectionBackground(Color.WHITE);rn jiu.setSelectionForeground(Color.red);rn jiu.setGridColor(Color.BLACK);rn // jiu.selectAll();rn jiu.setRowSelectionInterval(0, 0);rnrn //jiu.clearSelection();rn jiu.setDragEnabled(false);rn jiu.setShowGrid(true);rn jiu.setShowHorizontalLines(false);rn jiu.setShowVerticalLines(false);rn //jiu.doLayout();rn jiu.setBackground(Color.LIGHT_GRAY);rn //ButtonListener bListener = new ButtonListener(jiu, rid);rn //bListener.otherTable = jiu;rn return jiu;rn rn //!!!!rn JTable jiudian() //生成酒店的表格 rn // 用向量来实现动态的大小rn //Object 可以不用了rn Vector lieV = new Vector();rn Vector hangV = new Vector();rn Object row[][] = new Object[30][30];rn try rn Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");rn Connection con;rn con = DriverManager.getConnection("jdbc:sqlserver://localhost:1433;DataBaseName=Hotel", "sa", "123");rn Statement statement = con.createStatement();rn ResultSet rs = statement.executeQuery("Select * from 房间");rn int x = 0;rn int y = 0;rn rn while (rs.next()) rn Vector hangv = new Vector();rn row[x][y] = Integer.parseInt(rs.getString("rid"));rn hangv.add(row[x][y]);rn y++;rn row[x][y] = rs.getInt("Rprice");rn hangv.add(row[x][y]);rn y++;rn row[x][y] = (rs.getString("raddress"));rn hangv.add(row[x][y]);rn y++;rn row[x][y] = (rs.getString("rtype"));rn hangv.add(row[x][y]);rn y++;rn row[x][y] = (rs.getString("rstate"));rn hangv.add(row[x][y]);rn x++;rn y = 0;rn hangV.add(hangv);rn rn catch (Exception e) rn System.out.println("Error" + e);rn rn final Object Lie[] = "编号", "价格", "位置", "类型", "状态" ;rn lieV.add("编号");rn lieV.add("价格");rn lieV.add("位置");rn lieV.add("类型");rn lieV.add("状态");rn rn //JTable jiu = new JTable(row, Lie); // 建立表格rn DefaultTableModel tableModel = new DefaultTableModel(hangV, lieV);rn JTable jiu = new JTable(tableModel); rn jiu.setPreferredScrollableViewportSize(new Dimension(400, 300));rn jiu.setRowHeight(30);rn jiu.setRowMargin(5);rn jiu.setRowSelectionAllowed(true);rn jiu.setSelectionBackground(Color.WHITE);rn jiu.setSelectionForeground(Color.red);rn jiu.setGridColor(Color.BLACK);rn // jiu.selectAll();rn jiu.setRowSelectionInterval(0, 0);rnrn //jiu.clearSelection();rn jiu.setDragEnabled(false);rn jiu.setShowGrid(true);rn jiu.setShowHorizontalLines(false);rn jiu.setShowVerticalLines(false);rn jiu.doLayout();rn jiu.setBackground(Color.LIGHT_GRAY);rnrn return jiu;rn rnrnrnrnrnErrorjava.lang.Illegal<em>Argument</em>Exception: Row index out of <em>range</em>rn实在不知道怎么修改rn
vector subscript out of range问题
[code=c]rnfor(std::vector::size_type i = lineStr.size() - 1; i >= 0; i--)rnrn sscanf(lineStr[i],"%s %s %s %s %s %s %s %s",pCode,pName,pStr,pGroup,pValue,pUnit,pMin,pMax);rnrn[/code]rn这段代码有什么问题么,求各位大大们解答,谢谢了
出现 vector subscript out of range
#includern#includernusing namespace std;rnint main()rn int n ,i;rn double x;rn cout<>n>>x;rn vectorpoly(n);rn poly[0]=1;rn poly[1]=x;rn for(int i=2;i<<
string subscript out of range! 急!!!!
rn编译程序出现的Assert问题!rn弹出一个Visual C++ Debug Library错语!rnrn<em>错误</em>点:rnrnQueryInterface()查找接口时,请问这程情况一般是什么问题!?
String index out of range: 6
[img=https://img-bbs.csdn.net/upload/201305/18/1368875784_483066.png][/img]rn[img=https://img-bbs.csdn.net/upload/201305/18/1368875946_841555.png][/img]rn[img=https://img-bbs.csdn.net/upload/201305/18/1368875959_219033.png][/img]rnrnrn老是说 字符串索引超出范围 到底哪里错了????
菜鸟求助,std::out of range
class Borrowerrnrnpublic:string borrowerid, borrowerfirstname, currentnum, borrowerlastname;rnrn string book[5] = "0" ;rn Borrower()rn rn borrowerid = "abcde", borrowerfirstname = "baaaaaaas", borrowerlastname = "namenamename", currentnum = "0";rn for (int i = 0; i < 5; i++)rn rn book[i] = "a";rn rn ;rnrn ~Borrower() ;rnrnrnrnrn;rnistream &operator>>(istream &is, Borrower &a)rnrn string z;rn int m = 0, back = 5, counter=5;rn is >> z;rn for (int i = 0; i < 5; i++)rn rn if (48 << "error"; exit(0);rn rn for (int i = 0; i < 5; i++)rn rn a.borrowerid[i] = z[i];rn rnrn for (counter = 5; counter < z.length(); counter++)rn rn if (z[counter] == ' ')rn break;rn rn a.borrowerfirstname = z.substr(back + 1, counter- back - 1);rn back = counter;rnrn for (counter = back+1; counter < z.length(); counter++)rn rn rn if (z[counter] == ';')break;rn rn a.borrowerlastname = z.substr(back + 1, counter - back - 1);rn back = counter;rnrnrnrnrnrn return is;rnrnint main()rnrn Borrower A;rn cin >> A;rn cout << A;rn rn system("pause");rnrn
out of range 怎么解决啊????????
我在安装RADHAT9和红旗5时都出现OUT OF RANGE显示器也黑屏!!!!rn在网上查到是显卡还是显示器的问题!!rn请问怎么解决啊!!??????????rn
vector subscript out of range错误提示
[code=C/C++]rnvoid CUtilityApp::InsertFlagToExcelData(CString DataFlag,map>> &mapExcelData)rnrn for (map>>::iterator itr_map=mapExcelData.begin();itr_map!=mapExcelData.end();itr_map++)rn rn for (vector>::iterator itr_vec=itr_map->second.begin();itr_vec!=itr_map->second.end();itr_vec++)rn rn if (itr_vec == itr_map->second.begin())rn rn itr_vec->insert(itr_vec->begin(),_T("数据标志"));rn elsern rn itr_vec->insert(itr_vec->begin(),DataFlag);rn rn rn rn[/code]
命名空间越界vector out of range
[code=c]CString Bus::InsertPassengerInfo(Station &signal2, int n) //上车的过程rnrnrn if (AbleToHold
Parameter index out of range 谢谢!
谢谢大家!帮我看看这个<em>错误</em>怎么回事,谢谢!!rnrnjava.sql.SQLException: Parameter index out of <em>range</em> (1 > number of parameters, which is 0).rn at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:2493)rn at com.mysql.jdbc.PreparedStatement.setString(PreparedStatement.java:3213)rn at database.LinkDB.addBook(LinkDB.java:35)rn at action.addBookAction.execute(addBookAction.java:37)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)rn at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)rn at java.lang.Thread.run(Thread.java:595)rn
提示string subscript out of range
[code=c]int main()rnrn int i, j;rn string _strIn;rn vector>stu; //動的な二次元vector配列stuを宣言するrn vector_stu; //動的なvector配列_stuを宣言するrn string token;rn int bugs = 0;rnrn //ifstream fin("E:\\newfile.csv"); //CSV OPENrn ifstream fin("E:\\01.csv");rnrn while (getline(fin,_strIn)) //一行ずつ読み込むrn rn stringstream sstr(_strIn);rnrn while (getline(sstr,token,',')) //”、”マックを分けるマックとして、一行の文字列を分けるrn rn _stu.push_back(token); //vector配列に文字列を一個ずつ入れるrn rnrn stu.push_back(_stu); //vector配列を二次元vector配列に入れるrn _stu.clear(); //_stu リセットrn /*cout << _strIn << endl;*/rn rnrn for (i=0;i
system.index out of range exception??谢谢
public class D2rn rn public int [,] mm;rnrn public static void Main()rn rn rn while(true)rn rn D2 myD2=new D2();rn int n;rn Console.WriteLine("please input martix:");rn n=Convert.ToInt32(Console.ReadLine());rn if(n==0)rn rn Console.WriteLine("enter");rn break;rn rn if(n%2 ==0)rn rn Console.WriteLine("请输入奇数:");rn continue;rn rn myD2.mm=new int[n,n];rn myD2.AssignValue(n);rn myD2.shuchu(n);rn Console.WriteLine("\n");rnrn rn Console.ReadLine();rnrnrn rnrn public void AssignValue(int n)rn rn int i,j=0;rn int assign=1;//用于填入矩阵中的值rn int p=n-1;//数字放入的位置rn int row=0;rn int col=p/2;//中间点的坐标位置rn for( i=0;i
为什么会出现out of range?
我的机子时不时的出现整个屏幕黑屏并出现out of <em>range</em> 的红色文字?rn请教大家如何解决?
c++ 报错 vector out of the range
读一个2016行的文件到vector里面,一直提示vector out of <em>range</em>。rnrn我试着把vector大小改的很大还是有这个问题,所以不是一开始分配的大小不够,还有我测试过读文件的方法也是没有问题的。请问是哪里不对呢?rn```rnvector>contact(68, vector(68, 0));rnfor (int k = 1;k > row >> column;rn infile.get();rn infile.get();rn infile.get();rn infile.get();rn infile >> contact[row - 1][column - 1];rn contact[column-1][row-1]= contact[row-1][column-1];rn infile.get();rnrn```
jump out of range////出错啦!!!!!!!!!!!!!
我的代码段中调用了几个宏,于是jmp指令出错了:rnjump out of <em>range</em> by 16 byte(s)....rn于是我用: jmp near ptr exitrn强制产生near调转。但是还是没有用啊?
String index out of range: 48
String index out of <em>range</em>: 48
The 'year' argument must be in range 1900 to 9999.
如题。rn代码如下:rn for (int i = 0; i < list.size(); i++) rn List obj = (List) list.get(i);rn int year = 0;rn int month = 0;rn int day = 0;rn int hour = 0;rn int min = 0;rn for (int j = 0; j < obj.size(); j++) rnrn if (j == 0) rn year = Integer.parseInt(obj.get(0).toString().substring(0,rn 4));rn month = Integer.parseInt(obj.get(0).toString().substring(4,rn 6));rn day = Integer.parseInt(obj.get(0).toString().substring(6,rn 8));rn hour = Integer.parseInt(obj.get(0).toString().substring(8,rn 10));rn min = Integer.parseInt(obj.get(0).toString().substring(rn 10, 12));rn rn if (j == 1) rn time3.add(new Minute(min, new Hour(hour, new Day(day, month, year))),rn Float.parseFloat(obj.get(1).toString()));rn rn if (j == 2) rn time1.add(new Minute(min, new Hour(hour, new Day(day, month, year))),rn Float.parseFloat(obj.get(2).toString()));rn rn if (j == 3) rn time2.add(new Minute(min, new Hour(hour, new Day(day, month, year))),rn Float.parseFloat(obj.get(3).toString()));rn rn rnrn说这句话有问题rn if (j == 1) rn time3.add(new Minute(min, new Hour(hour, new Day(day, month, year))),rn Float.parseFloat(obj.get(1).toString()));rn rn希望各位大侠停下你们的脚步 看看 瞧瞧
怎样把CB控件加别的属性
我想用<em>CB</em>的一个<em>控件</em>.但要加点东东,rn用一个新的类继承之,但由于这个<em>控件</em>是可视的,我不知道如何用我的类.rn给点源程序rn
CB控件开发中,关于属性的问题.....
最近看别人的cb 代码,rn部分如下 :rnclass TGreaser : public TPanelrnrn__published: // IDE-managed Components;rn __property String GreaserNo=read=FGreaserNo,write=SetGreaserNo ;rnrn其中对于<em>属性</em>有几点不清楚 :rn1 :在类实例中,<em>属性</em>变量本身有没有内存空间,rn2 :对于<em>属性</em>的read ,我的理解是当从GreaserNo取值时,就好像引发如table的trigger一样,运行rnread ,当给一个<em>属性</em>赋值时,就调用write ,但有点不清楚,rn对于<em>属性</em>的read 与write ,其是自已的调用 ,如果是函数如:SetGreaserNo ,应该是没有参数的rn才对 ,但原文 中函数却有参数 。且能通过编译,rn不知这个参数是如何传递的 ......rnrn请高手讲解》。。。。
错误:-(">出现"invalid argument"错误:-(
我的一处程序是网络版的,是用SQL SERVER 2000 + DELPHI7的,数据库装在服务器上的,有几台电脑使用的时候是正常的,但有一台电脑上装上程序以后一运行就出现"invalid argument"<em>错误</em>.rn那台电脑一开始装的是WIN2000,后来我换成WINXP也不行.rnrn这是什么问题?是系统的问题还是程序的问题?该如何解决?谢谢.
error A2053: Jump out of range by 13 byte(s) 是什么错误
rt rn求解。。。。
显示expression :vector subscript out of range错误 求 大神知道
#include "StdAfx.h"rn#include rn#include rn#include rn#include rn#includern#include rn#include rnusing namespace std;rnvoid splitdou(string s,vector&ret)rnrn rn size_t last= 0;rn size_t index=s.find_first_of(',',last);rn while (index!=std::string::npos)rn rn ret.push_back(s.substr(last,index-last));rn last=index+1;rn index=s.find_first_of(',',last);rn rn if (index-last>0)rn rn ret.push_back(s.substr(last,index-last));rn rn rnrnrnint main()rn ifstream in;rn string line;rn in.open("D:\\text\\traver.txt");rnrn while(in>>line)rn rn vector str;rn str=vector(); rn splitdou(line,str);//用逗号隔开分离;rnrn for(int j1=0;j1
汇编时候出现跳转的错误~jump out of range
一个小程序rn大概就百行多rn一个代码段rn中间有个rnje nextrn但是离next可能远了些rn宏展开之后大概距离有200行rn报错就是rnjump out of <em>range</em> by 32 byte(s)rn在宏中间加一句rnmov ax,10rn<em>错误</em>就变成了rnjump out of <em>range</em> by 38 byte(s)rn两个宏的话应该是越界无疑rnrn但是改成 je near ptr nextrn和 je far ptr nextrn都还是一样报错,请问各位为什么?还有怎么改?
请教一个关于报subcript out of range 错误的问题
rnSub sendtodept(getdoc,getdb As notesdatabase)rn '发送主送、抄送、抄报,本系统发送等部门代理 rn Dim session As New notessession '///////rn Dim db,namesdb As notesdatabasern Dim view,viewformal As notesviewrn Dim item As notesitemrn Dim curdoc,viewdoc,maildoc,fdoc As notesdocument '///////rn Dim dcdept As notesdocumentcollection rn Dim tempdept,tempduty As Stringrn Dim tempname,tempcname As Stringrn Dim tempnamedepts,tempcopyto,tempsendto As Stringrn Dim tempdeptshead,tempdeptsback As Stringrn Dim msg,docid,tempdocid,fdocid,doclink As Stringrn rn rn rn '--------------rn Dim searchstr As Stringrn Dim sendpeople() As Stringrn Dim itemmain,itemchao,itemoffice As notesitemrn Dim itemcopy As notesitemrn Dim getnumber As Integerrn Dim sn As Integerrn '------------rn rn rn Set db = session.currentdatabasern Set curdoc = session.documentcontextrn tempcopyto = curdoc.CCopySend(0)rn tempsendto = curdoc.CMainSend(0) + ","rn docid = curdoc.CurDocID_1(0)rn doclink = curdoc.fdoclink(0)rn rn '------------------------rn rn '查看正式发文视图,是否有该文档rn searchstr=Trim(getdoc.nian(0))+Trim(getdoc.DeptWord(0))+Trim(getdoc.Number(0))rn Set viewformal = getdb.getview("EndSendFile")rn Set fdoc = viewformal.getdocumentbykey(searchstr,True)rn rn If fdoc Is Nothing Thenrn msg="该文件还没有成为正式发文!"rn Print "[/Lt_sendfile.nsf/frmBack?openform&"+msg+"]"rn Exit Subrn End Ifrn rn '添加流程跟踪记录rn Call AddFlowlogDept(getdoc)rn rn Set itemmain=getdoc.getfirstitem("MainSendTo")rn Set itemcopy=getdoc.getfirstitem("AlsoSendTo")rn ’添加1开始rn Set itemchao=getdoc.getfirstitem("chaobao")rn Set itemoffice=getdoc.getfirstitem("officename") rn ‘添加1结束rn getnumber=Cint(Ubound(itemmain.values))rn getnumber=getnumber+Cint(Ubound(itemcopy.values))rn ’添加2开始rn getnumber=getnumber+Cint(Ubound(itemchao.values))rn getnumber=getnumber+Cint(Ubound(itemoffice.values))rn ’添加2结束rn Redim sendpeople(0 To getnumber+1)rn sn=0rn rn rn rn Forall v In itemmain.valuesrn sendpeople(sn)=vrn sn=sn+1rn End Forallrn rn Forall d In itemcopy.valuesrn sendpeople(sn)=drn sn=sn+1rn End Forallrn ’添加3开始rn Forall e In itemchao.valuesrn sendpeople(sn)=ern sn=sn+1rn End Forallrn rn Forall f In itemoffice.valuesrn sendpeople(sn)=frn sn=sn+1rn End Forallrn rn ’添加3结束rn '正式发文文档连接 rn 'doclink = doclink + fdocidrn doclink=Trim(fdoc.MyDocLink(0))rn rn Set maildoc = New NotesDocument(getdb)rn maildoc.form = "MyTaskNotice"rn maildoc.DueState = "0" rn maildoc.TaskType = "发文管理" rn maildoc.Subject = getdoc.Title(0) '主题rn maildoc.from = getdoc.CCurObserver(0)rn maildoc.submitter = getdoc.CCurObserver(0)rn maildoc.Curserver = getdb.serverrn maildoc.MydocLink = doclinkrn maildoc.SubmitTime = Format(Now(), "General Date")rn maildoc.SendTo = sendpeoplern Call maildoc.send(False)rn rn Call SendmailtoonePeo(curdoc,curdb,cnextman)rn rn msg="已经把发文发到主送、抄送、抄报、本系统发送部门"rn Print "[/Lt_sendfile.nsf/frmBack?openform&"+msg+"]"rnrn 上面是一段关于发送邮件到各个部门的代理,我运行时出现的问题的情况如下:在我删除注释中的三个添加部分,也就是取消发送到抄报、本系统发送两个部门的情况下,邮件能正常发送到主送和抄送部门。但添加了发送到抄报,本系统发送两个部门的代码后,服务器端会报subcript out of <em>range</em> <em>错误</em>。我想请教一下各位高手,出现这种情况的问题出在那,在此先谢各位。
Invalid argument supplied 的错误
[code=PHP]rnchannel->item as $item )rnrn...rn[/code]rnrn在本地调试没事, 上传到服务器, 出现 PHP Warning: Invalid argument supplied for foreach() in ***.php on line 6rnrn请问foreach( $xml->channel->item as $item ) 这句错在哪里?
Grid index out of range错误怎么回事?急急急急!!!
ClientDataSet.dataRequest后,用.dataRequest.indexDefs.add增加了rn几个索引用来排序,然后在ClientDataSet的indexname设了一个值,当在次ClientDataSet.dataRequest后,然后重新设indexname,会出现Grid index out of <em>range</em><em>错误</em>(我使用了DBGrid连到ClientDataSet),怎么解决?rn
Bits index out of range 错误,CLIENTDATASET 急,希望高手指点
Bits index out of <em>range</em> <em>错误</em>,CLIENTDATASET 急,希望高手指点rnrn是在CLINETDATASET的POST时,报错,rn
Sheet index (0) is out of range (0..-1) POI操作Excel错误
系统架构:Struts2.1.8、Spring2.5、Hibernate3.0rn使用poi.jar包操作Excel报错!rnpoi.jar: rnpoi-3.7-20101029.jarrnpoi-examples-3.7-20101029.jarrnpoi-ooxml-3.7-20101029.jarrnpoi-ooxml-schemas-3.7-20101029.jarrnpoi-scratchpad-3.7-20101029.jarrnrn导入文件页面代码:rn[code=HTML]rn rn 导入Excel文件: rn rn rn[/code]rnrn后台Userinfo类<em>属性</em>跟get/set方法省略。rnExcelWorkSheet类:rn[code=Java]rnpackage com.boxun.bean;rnrnimport java.util.ArrayList;rnrnimport java.util.List;rnrnimport org.apache.poi.hssf.record.formula.functions.T;rnrnpublic class ExcelWorkSheet rn private String sheetName;rn private List data = new ArrayList(); //数据行rn private List columns; //列名rn public String getSheetName() rn return sheetName;rn rn public void setSheetName(String sheetName) rn this.sheetName = sheetName;rn rn public List getData() rn return data;rn rn public void setData(List data) rn this.data = data;rn rn public List getColumns() rn return columns;rn rn public void setColumns(List columns) rn this.columns = columns;rn rn rnrn[/code]rnrnUserAction:rn[code=Java]rnpackage com.boxun.action;rnrnimport java.io.File;rnrnimport java.io.FileInputStream;rnimport java.io.IOException;rnimport java.io.InputStream;rnimport java.util.ArrayList;rnimport java.util.Iterator;rnimport java.util.List;rnrnimport org.apache.poi.hssf.usermodel.HSSFWorkbook;rnimport org.apache.poi.ss.usermodel.Cell;rnimport org.apache.poi.ss.usermodel.Row;rnimport org.apache.poi.ss.usermodel.Sheet;rnimport org.apache.poi.ss.usermodel.Workbook;rnimport org.apache.poi.xssf.usermodel.XSSFWorkbook;rnrnimport com.boxun.bean.ExcelWorkSheet;rnimport com.boxun.bean.Userinfo;rnimport com.boxun.biz.IUserBiz;rnimport com.opensymphony.xwork2.ActionSupport;rnrnpublic class UserAction extends ActionSupport rn private IUserBiz userBiz;rn public void setUserBiz(IUserBiz userBiz) rn this.userBiz = userBiz;rn rn rn private File excelFile; //上传的文件rn rn private String excelFileFileName; //保存原始文件名rn rn //将Excel文件解析完毕后信息存放到这个对象中rn private ExcelWorkSheet excelWorkSheet;rn rn public File getExcelFile() rn return excelFile;rn rnrn public void setExcelFile(File excelFile) rn this.excelFile = excelFile;rn rnrn public String getExcelFileFileName() rn return excelFileFileName;rn rnrn public void setExcelFileFileName(String excelFileFileName) rn this.excelFileFileName = excelFileFileName;rn rnrn public ExcelWorkSheet getExcelWorkSheet() rn return excelWorkSheet;rn rnrn public void setExcelWorkSheet(ExcelWorkSheet excelWorkSheet) rn this.excelWorkSheet = excelWorkSheet;rn rnrn rn rn //判断文件类型rn public Workbook createWorkBook(InputStream is) throws IOExceptionrn if(excelFileFileName.toLowerCase().endsWith("xls"))rn return new HSSFWorkbook();rn rn if(excelFileFileName.toLowerCase().endsWith("xlsx"))rn return new XSSFWorkbook();rn rn return null;rn rn rn public String execute() throws Exceptionrn Workbook book = createWorkBook(new FileInputStream(excelFile));rn Sheet sheet = book.getSheetAt(0); //在这一行的时候报错rn excelWorkSheet = new ExcelWorkSheet();rn //保存工作单名称rn Row firstRow = sheet.getRow(0);rn Iterator iterator = firstRow.iterator();rn rn //保存列名rn List cellNames = new ArrayList();rn while (iterator.hasNext()) rn cellNames.add(iterator.next().getStringCellValue());rn rn excelWorkSheet.setColumns(cellNames);rn rn for (int i = 1; i < excelWorkSheet.getData().size(); i++) rn Userinfo info = excelWorkSheet.getData().get(i);rn System.out.println(info.getLastname());rn rn return SUCCESS;rn rn rn rn rn rnrn[/code]rnrnStruts2配置文件:rn[code=XML]rnrnrnrn rn rn rn rn /excel/InputExcel.jsprn rn rn rn[/code]rnrn打印异常:rn[code=Java]rnjava.lang.Illegal<em>Argument</em>Exception: Sheet index (0) is out of <em>range</em> (0..-1)rn org.apache.poi.hssf.usermodel.HSSFWorkbook.validateSheetIndex(HSSFWorkbook.java:403)rn org.apache.poi.hssf.usermodel.HSSFWorkbook.getSheetAt(HSSFWorkbook.java:781)rn org.apache.poi.hssf.usermodel.HSSFWorkbook.getSheetAt(HSSFWorkbook.java:88)rn com.boxun.action.UserAction.execute(UserAction.java:76)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:597)rnrn[/code]rnrnexcel文件:rn[code=XML]rn编号 用户名 密码 真实姓名 地址 备注rn5 3135 123 博讯 贵阳 诗人rn6 8634 456 一生 平安 好人rn7 7255 245 天天 向上 学习rn[/code]rnrnDebug的时候、到Sheet sheet = book.getSheetAt(0); 这行就报错。rnrn各位给看看!感激不尽!!!rnrn
请问这个错误怎么改:String index out of range: 10
代码如下:rnrnrnrnrnrn 个人请假查询rn rnrn rnrn rn rn rn rn 人员姓名rn rn 开始时间rn rn 结束时间rn rn 小时数rn rn 原因rn rn 申请时间rn rn 种类rn rn 批示rnrn rn rn rn -//:rn -//:rn rn rn rn rnrn rn有薪休假rn无薪休假rn无事故rn Yrnrn rnrn rn rn rnrn 返回 rnrnrn字符串下标益出?怎么改?急等!谢谢
请教:Jump out of range by 2 bytes错误是什么回事?
我是80x86汇编初学者,在用masm编译程序时出现这个提示。请问各位大虾什么回事?类似问题该如何解决?
LyfUpload 错误 '80020009',Subscript out of range 在线等待
我是这个问题,LyfUpload <em>错误</em> '80020009' rnrnSubscript out of <em>range</em> rnrn/manage/other/meetadd.asp,行13 rn我出错的地方好像是rnSet obj = Server.CreateObject("LyfUpload.UploadFile")这一句,真的搞不懂了rn
vb的treeview控件的tag属性
我就是搞不明白treeview的tag<em>属性</em>是干什么的,看了好多例子还是不明白,太笨了。还有他的item<em>属性</em>,比如说rntreeview1.nodes.item(i).text,为什么要加item(i)啊,不加不是也可以的吗?求教高手啊rn
TreeView控件的 hideselection属性不起作用
<em>CB</em>6.0汉化版rn使用Treeview<em>控件</em>和一个按纽Buttonrn随便在Treeview里增加点项目rn把hideselection设置为falsern当点了Button以后,Treeview里选种项灰色的条条还是消失了
TreeView控件的EnableViewState属性的问题
我是从数据库读取数据并且在treeview手动(不是绑定)添加节点的,每个节点都带有CheckBox,然后在一个按钮click事件里面遍历treeview的所有节点,并且从数据库中删除treeview中选中的记录,在数据库中成功删除(有条件,不能删除有子节点的节点)记录后在treeview中删除此节点,遍历算法如下:rnprivate void DeleteNode(TreeNode parentNode)rnrn int i = parentNode.Nodes.Count - 1;rnrn while (i >= 0)rn rn DeleteNode(parentNode.Nodes[i]);rnrn if (parentNode.Nodes[i].Checked)rn rn if ( ProductCatalog.DeleteCategory( Convert.ToInt32(parentNode.Nodes[i].ID) ) )rn parentNode.Nodes.RemoveAt(i);rn rn i--;rn rnrn现假设treeview的EnableViewState<em>属性</em>设为true,treeview的结构为一个根节点root,root有两个子节点,A和B,第一次点击按钮执行删除操作成功,第二次执行失败,提示索引超出范围,如果将"if ( ProductCatalog.DeleteCategory( Convert.ToInt32(parentNode.Nodes[i].ID) ) )"去掉,也就是不从数据库删除记录,就执行多少次删除都没有<em>错误</em>。如果将EnableViewState设为false,第一次操作与前者结果相同,第二次也成功执行,唯一的问题就是treeview的状态不再是已经打开的状态,而是所有节点都关闭。郁闷了两天了,不知道是哪里的问题
Treeview控件Sorted属性异常问题
各位朋友:rnrn 我在使用treeview<em>控件</em>时,在窗体初始化的时候就使用了.sorted=true,但是生成的结果却没有排序,没办法的情况下,我在Collapse事件时写入了下面代码需要点击一下顶端节点时就可以自动排序,我想在初始化时调用此事件rncall <em>TreeView</em>1_Collapse(1) 出现<em>错误</em>,我想是传递的参数有问题,但不知道该传递什么值给此事件,我第一个节点的关键字为“L0",传入此值也不正确,请知情的朋友指点一下,这是什么原因造成的?如何在窗体初始化时调用Collapse事件,谢谢rnrnPrivate Sub <em>TreeView</em>1_Collapse(ByVal Node As MSComctlLib.Node)rn If Node.Index = 1 Thenrn Node.Expanded = Truern Node.Sorted = Truern End IfrnEnd Sub
问一个TreeView控件属性
就是root和parent都是空链接,我想要实现点root或parent文字时就折叠/展开其对应的节点。rnrn注意:我是说点Root/Parent文字,不是说点图标。rnrn谢谢了
treeview控件的sorted属性在哪?
treeview<em>控件</em>的sorted<em>属性</em>在哪?rnVS2008 C#,找半开了找不到.书上写的有
treeview控件的data属性问题
Tquestions为一个自定义记录类型rnPquestions=^Tquestions;rnrn代码如下:rnprocedure TSDIAppForm.AddNewNode(que:Tquestions);rnvarrn newnode,parentNode:TTreeNode;rn quetmp:Pquestions;rnbeginrn Treeview1.SetFocus;rn case que.que_type ofrn 0: parentnode:=treeview1.Items.Item[0].Item[0];rn 1: parentnode:=treeview1.Items.Item[0].Item[1];rn 2: parentnode:=treeview1.Items.Item[0].Item[2];rn 3: parentnode:=treeview1.Items.Item[0].Item[3];rn end;rn newnode:=treeview1.Items.AddChildObject(parentnode,'test',@que);rn newnode.SelectedIndex:=10;rn newnode.ImageIndex:=8;rn newnode.StateIndex:=-1;rn newnode.Text:=que.que_memo;rn new(que);rn quetmp:=newnode.Data;rn showmessage(quetmp.que_memo);<--------?????????这里不能够正确显示que_memornend;rnrn请指正(详码)!
网站首页设计图(index)下载
网站首页设计图(index)附加2级3级网站页面图和内容页面图 相关下载链接:[url=//download.csdn.net/download/yzmdjjl/3141906?utm_source=bbsseo]//download.csdn.net/download/yzmdjjl/3141906?utm_source=bbsseo[/url]
PB助手 收藏备用下载
PB助手 收藏备用 相关下载链接:[url=//download.csdn.net/download/yudehui/4547814?utm_source=bbsseo]//download.csdn.net/download/yudehui/4547814?utm_source=bbsseo[/url]
基本的编程技巧下载
让我们看一些基本的编程技巧:1.尽量保持方法简短2.永远永远不要把同一个变量用于多个不同的目的3.使用自描述的变量名和方法名4.尽可能的把变量定义在靠近使用它的地方5.拒绝神秘数字6.友好的对待你的语言7.不要逆常规而行8.警惕过早优化9.积极重构测试过的程序10.不要过度沉迷于技巧11.通过习例学习新知 相关下载链接:[url=//download.csdn.net/download/rain_yu21/5076073?utm_source=bbsseo]//download.csdn.net/download/rain_yu21/5076073?utm_source=bbsseo[/url]
相关热词 c#部署端口监听项目、 c#接口中的属性使用方法 c# 昨天 c#func链接匿名方法 c#怎么创建文件夹 c#从键盘接收空格 c#da/ad c#部门请假管理系统 c#服务器socket c# 默认的访问修饰符
我们是很有底线的