Foxtable(狐表)用户栏目专家坐堂 → [求助]“窗口中的动态列表项目”能不能设计成“复选组合框”


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

主题:[求助]“窗口中的动态列表项目”能不能设计成“复选组合框”

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


加好友 发短信
等级:婴狐 帖子:28 积分:406 威望:0 精华:0 注册:2019/4/27 6:39:00
[求助]“窗口中的动态列表项目”能不能设计成“复选组合框”  发帖心情 Post By:2020/5/20 9:49:00 [显示全部帖子]

老师:您好!
使用指南中:

设计的步骤为:

1、在窗口的AfterLoad事件中加入代码:

Dim cmb As WinForm.ComboBox = e.form.Controls("ComboBox1")
cmb.ComboList =
DataTables("表A").GetComboListString("型号")

2、在ComboBox2的Enter事件中加入代码:

Dim cmb As WinForm.ComboBox = e.Sender
Dim
str As string = e.Form.Controls("ComboBox1").Value
cmb.ComboList =
DataTables("表A").GetComboListString("规格", "型号 = '" & str & "'"
)

3、最后在ComboBox3的Enter事件中加入代码:

Dim cmb As WinForm.ComboBox = e.Sender
Dim
str As String = e.Form.Controls("ComboBox2").Value
cmb
.ComboList = DataTables("表A").GetComboListString("颜色", "规格 = '" & str & "'"
)


请问:这个能不能设计成“复选组合框”。

   望不吝指教!谢谢!


 回到顶部