Foxtable(狐表)用户栏目专家坐堂 → [求助]字典集合定义错误


  共有2770人关注过本帖树形打印复制链接

主题:[求助]字典集合定义错误

帅哥哟,离线,有人找我吗?
blsu33
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:九尾狐 帖子:2928 积分:20184 威望:0 精华:0 注册:2012/2/3 17:45:00
[求助]字典集合定义错误  发帖心情 Post By:2018/2/14 22:19:00 [显示全部帖子]

老师,
下面的代码出错,是否定义有问题

MessageBox.Show(1)
            vars("p1_pidx") =new Dictionary(Of String,List(Of String))'窗口按钮数组
MessageBox.Show(2)
            Vars("p1_pname")=New Dictionary(Of String,String)'
MessageBox.Show(3)
            vars("p1_ymjz") = New Dictionary(Of String,List(Of String))'窗口页面加载一次使用
MessageBox.Show(4)
            vars("p1_kjjz") = New Dictionary(Of String,List(Of String))'窗口控件加载一次使用
            vars("p1_cdjz") = New Dictionary(Of String,List(Of String))'窗口控件加载一次使用
MessageBox.Show(5)
            vars("p1_pcanl") =New Dictionary(Of String,List(Of String))'窗口页面未完成登记不能切换范围
MessageBox.Show(6)
            'vars("p1_pcanl").clear
MessageBox.Show(7)
            vars("p1_tlff") = New Dictionary(Of String,List(Of String))'添加方法一次使用
MessageBox.Show(8)
            'vars("p1_ymjz").clear
            Select Case frmname
                Case "serevmain"
                    vars("p1_pcanl").add("serevmain","JD0101")




 回到顶部
帅哥哟,离线,有人找我吗?
blsu33
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:九尾狐 帖子:2928 积分:20184 威望:0 精华:0 注册:2012/2/3 17:45:00
  发帖心情 Post By:2018/2/14 22:19:00 [显示全部帖子]

提示 3 后显示
Overload resolution failed because no Public '<>' can be called with these arguments:
    'Public Shared Operator <>(a As String, b As String) As Boolean':
        Argument matching parameter 'a' cannot convert from 'Dictionary(Of String,String)' to 'String'.

显示 8 后提示
.NET Framework 版本:2.0.50727.3655
Foxtable 版本:2017.12.31.1
错误所在事件:自定义函数za_ck_afterload
详细错误信息:
Exception has been thrown by the target of an invocation.
Method invocation failed because 'Public Overrides Sub Add(key As String, value As System.Collections.Generic.List(Of String))' cannot be called with these arguments:
    Argument matching parameter 'value' cannot convert from 'String' to 'List(Of String)'.
.NET Framework 版本:2.0.50727.3655
Foxtable 版本:2017.12.31.1
错误所在事件:窗口,serevmain,SizeChanged
详细错误信息:
Overload resolution failed because no Public '<>' can be called with these arguments:
    'Public Shared Operator <>(a As String, b As String) As Boolean':
        Argument matching parameter 'a' cannot convert from 'Dictionary(Of String,String)' to 'String'.
.NET Framework 版本:2.0.50727.3655
Foxtable 版本:2017.12.31.1
错误所在事件:窗口,serevmain,SizeChanged
详细错误信息:
Overload resolution failed because no Public '<>' can be called with these arguments:
    'Public Shared Operator <>(a As String, b As String) As Boolean':
        Argument matching parameter 'a' cannot convert from 'Dictionary(Of String,String)' to 'String'.
[此贴子已经被作者于2018/2/14 22:20:24编辑过]

 回到顶部