Foxtable(狐表)用户栏目专家坐堂 → [求助]下拉窗口问题


  共有1916人关注过本帖平板打印复制链接

主题:[求助]下拉窗口问题

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


加好友 发短信
等级:幼狐 帖子:175 积分:1646 威望:0 精华:0 注册:2015/6/10 13:50:00
[求助]下拉窗口问题  发帖心情 Post By:2017/8/10 20:59:00 [只看该作者]

同样的代码,紫色的代码不起作用,找了很久都没找到原因
为什么先选择商品再删除,然后重新选择就有用了?
If e.Selected Then '如果选择了值
    Dim tbl As Table = Tables("下拉_Table1")
    If tbl.Current IsNot Nothing Then
        e.Form.DropDownBox.Value = tbl.Current("商品名称")
        If kou = "入库明细" Then
            Tables("入库.入库明细").Current("规格") = tbl.Current("规格")
            Tables("入库.入库明细").Current("单位") = tbl.Current("大单位")
            Tables("入库.入库明细").Current("单价") = tbl.Current("进货价")
        Else
            Tables("出库.出库明细").Current("规格") = tbl.Current("规格")
            Tables("出库.出库明细").Current("副单位") = tbl.Current("中单位")
            If xia = 0 Then
                Tables("出库.出库明细").Current("单位") = tbl.Current("大单位")
            ElseIf xia = 1 Then
                Tables("出库.出库明细").Current("单位") = tbl.Current("中单位")
            End If
        End If
        If e.Form.DropTable IsNot Nothing Then '如果是通过表下拉的
            e.Form.DropTable.FinishEditing()
        Else '如果是通过窗口下拉的
            e.Form.DropDownBox.WriteValue()
        End If
    End If
End If
[此贴子已经被作者于2017/8/10 22:05:29编辑过]

 回到顶部