以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  开发版升级到20210529版DataTables("窗").LoadFilter有问题吗  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=170292)

--  作者:keli0917
--  发布时间:2021/7/20 20:47:00
--  开发版升级到20210529版DataTables("窗").LoadFilter有问题吗
开发版升级到20210529版后
窗口中有Normal表TABLE1,作为副本FLASE.

窗口表事件AFTERLOAD中

DataTables("TABLE1").LoadFilter = "[_Identify] Is not null" \'加载条件
DataTables("TABLE1").Load()

预览的时候没问题。正式运行时提示语法错误。 在查询表达式 \'Select *\' 中。

--  作者:有点蓝
--  发布时间:2021/7/20 21:22:00
--  
我测试没有问题。删除项目里的bin目录,然后重启项目再试试。

另外"[_Identify] Is not null"这种条件其实就是加载所有数据,还不如不要条件

--  作者:keli0917
--  发布时间:2021/7/21 20:57:00
--  
图片点击可在新窗口打开查看
改成SQLTABLE就可以了。

--  作者:keli0917
--  发布时间:2021/7/21 20:57:00
--  
图片点击可在新窗口打开查看
这样就不行。

删除项目里的bin目录也不行。重装程序也不行。

图片点击可在新窗口打开查看
[此贴子已经被作者于2021/7/21 21:00:06编辑过]

--  作者:keli0917
--  发布时间:2021/7/21 21:08:00
--  
装回原来的版本程序。打开原来的备份项目。就正常没问题。
--  作者:有点蓝
--  发布时间:2021/7/22 8:52:00
--  
请上传实例测试
--  作者:keli0917
--  发布时间:2021/7/22 21:26:00
--  
有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.Data.OleDb.OleDbException (0x80040E14): 语法错误。 在查询表达式 \'Select *\' 中。
   在 System.Data.OleDb.OleDbCommand.ProcessResults(OleDbHResult hr)
   在 System.Data.OleDb.OleDbCommand.PrepareCommandText(Int32 expectedExecutionCount)
   在 System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
   在 System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
   在 System.Data.OleDb.OleDbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
   在 System.Data.Common.DbDataAdapter.FillSchemaInternal(DataSet dataset, DataTable datatable, SchemaType schemaType, IDbCommand command, String srcTable, CommandBehavior behavior)
   在 System.Data.Common.DbDataAdapter.FillSchema(DataTable dataTable, SchemaType schemaType, IDbCommand command, CommandBehavior behavior)
   在 System.Data.Common.DbDataAdapter.FillSchema(DataTable dataTable, SchemaType schemaType)
   在 Foxtable.DataTable.oO0OO.O.(DataTable A_0)
   在 Foxtable.O OO o  .O.00o...(Object A_0, EventArgs A_1)
   在 System.Windows.Forms.Control.OnClick(EventArgs e)
   在 System.Windows.Forms.Button.OnClick(EventArgs e)
   在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   在 C1.Win.C1Input.C1Button.OnMouseUp(MouseEventArgs mevent)
   在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
   在 System.Windows.Forms.Button.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** 已加载的程序集 **************
mscorlib
    程序集版本:4.0.0.0
    Win32 版本:4.7.3690.0 built by: NET472REL1LAST_C
    基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Foxtable
    程序集版本:2021.5.29.1
    Win32 版本:2021.05.29.1
    基本代码:file:///D:/foxtable/Professional/foxtable.exe
----------------------------------------
Foxtable.Lib
    程序集版本:2021.4.20.1
    Win32 版本:2021.04.20.1
    基本代码:file:///D:/foxtable/Professional/Foxtable.Lib.DLL
----------------------------------------
Microsoft.VisualBasic
    程序集版本:10.0.0.0
    Win32 版本:14.7.3190.0 built by: NET472REL1LAST_C
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    程序集版本:4.0.0.0
    Win32 版本:4.7.3640.0 built by: NET472REL1LAST_C
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    程序集版本:4.0.0.0
    Win32 版本:4.7.3661.0 built by: NET472REL1LAST_C
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
    程序集版本:4.0.0.0
    Win32 版本:4.7.3690.0 built by: NET472REL1LAST_C
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    程序集版本:4.0.0.0
    Win32 版本:4.7.3190.0 built by: NET472REL1LAST_C
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
C1.Win.C1Ribbon.4
    程序集版本:4.0.20191.359
    Win32 版本:4.0.20191.359
    基本代码:file:///D:/foxtable/Professional/C1.Win.C1Ribbon.4.DLL
----------------------------------------
System.Configuration
    程序集版本:4.0.0.0
    Win32 版本:4.7.3630.0 built by: NET472REL1LAST_B
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    程序集版本:4.0.0.0
    Win32 版本:4.7.3190.0 built by: NET472REL1LAST_C
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Interop.JinDI_SmsComLib
    程序集版本:1.0.0.0
    Win32 版本:1.0.0.0
    基本代码:file:///D:/foxtable/Professional/Interop.JinDI_SmsComLib.DLL
----------------------------------------
System.Data
    程序集版本:4.0.0.0
    Win32 版本:4.7.3701.0 built by: NET472REL1LAST_B
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
C1.Win.C1Command.4
    程序集版本:4.0.20191.359
    Win32 版本:4.0.20191.359
    基本代码:file:///D:/foxtable/Professional/C1.Win.C1Command.4.DLL
----------------------------------------
System.Management
    程序集版本:4.0.0.0
    Win32 版本:4.7.3190.0 built by: NET472REL1LAST_C
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------


--  作者:keli0917
--  发布时间:2021/7/22 21:28:00
--  
System.Drawing.Design
    程序集版本:4.0.0.0
    Win32 版本:4.7.3190.0 built by: NET472REL1LAST_C
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.Design.dll
----------------------------------------

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。

例如:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

启用 JIT 调试后,任何未经处理的异常
都将被发送到在此计算机上注册的 JIT 调试程序,
而不是由此对话框处理。



--  作者:keli0917
--  发布时间:2021/7/22 21:29:00
--  
是不是因为我的ACCESS数据库是2003版的原因?内部数据源就没问题。
--  作者:keli0917
--  发布时间:2021/7/22 21:56:00
--  
2003版的数据库是有工作组的。但是我可以连通数据库呀。
[此贴子已经被作者于2021/7/22 22:04:07编辑过]