Foxtable(狐表)用户栏目专家坐堂 → [求助]窗口中的动态列表项目 的一个问题?


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

主题:[求助]窗口中的动态列表项目 的一个问题?

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


加好友 发短信
等级:一尾狐 帖子:422 积分:2708 威望:0 精华:0 注册:2012/2/10 18:12:00
[求助]窗口中的动态列表项目 的一个问题?  发帖心情 Post By:2014/6/16 23:05:00 [只看该作者]

"帮助'中窗口中的动态列表项目的代码是、在窗口的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 & "'"
)

若表是空的,没加载,数据在后台,现在要问是若从后台进行,代码该如何写?


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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2014/6/16 23:20:00 [只看该作者]

 GetComboListString 改成 SqlGetComboListString

 

 http://www.foxtable.com/help/topics/2910.htm

 


 回到顶部