首页 > 代码库 > 李伟龙老师解决的两个问题
李伟龙老师解决的两个问题
系统格式另存为会报错:
异常信息(异常类型:System.ArgumentOutOfRangeException)
异常提示:索引超出范围,请联系管理员处理
异常信息:Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
导致错误的应用程序或对象的名称:mscorlib
引发当前异常的方法:System.Object System.Collections.IList.get_Item(Int32)
异常相关帮助:
堆栈信息:
at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
at DevExpress.XtraEditors.Controls.ComboBoxItemCollection.get_Item(Int32 index)
at Genersoft.GSIDP.JZPubQry_Com.frmDevBBShow.bindQryStyle()
at Genersoft.GSIDP.JZPubQry_Com.frmDevBBShow.getDataTitle()
at Genersoft.GSIDP.JZPubQry_Com.frmDevBBShow.btntitleSave_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
内部异常:{}
第二个:将另存为的格式删掉后,系统格式后跟了一个“111111”的格式,而且这个格式删除不掉
两个问题通过一个操作解决了
select * from LSZBGS
WHERE F_GSMC=‘111111‘(删不掉的系统格式)
然后将该条记录,备份后,删除
两个问题都解决了!
李伟龙老师解决的两个问题