Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vb6 如何从其他表单访问combobox.listcount或.text?_Vb6 - Fatal编程技术网

Vb6 如何从其他表单访问combobox.listcount或.text?

Vb6 如何从其他表单访问combobox.listcount或.text?,vb6,Vb6,纽贝寻求建议/提示/帮助 我有两个表单,表单1有cmbType,我想访问表单2中的cmbType.listcount或.text 顺便说一下,我正在使用模块 a。如何从其他表单访问(combobox.listcount或.text) b。另外,我应该将下一个循环放在哪里进行扫描 combobox.text是否已存在任何数据 这是我下一个循环的代码 Dim intCounter As Integer For intCounter = 0 To cmbTypeYacht.ListCount Ste

纽贝寻求建议/提示/帮助

我有两个表单,表单1有cmbType,我想访问表单2中的cmbType.listcount或.text

顺便说一下,我正在使用模块

a。如何从其他表单访问(combobox.listcount或.text)

b。另外,我应该将下一个循环放在哪里进行扫描 combobox.text是否已存在任何数据

这是我下一个循环的代码

Dim intCounter As Integer

For intCounter = 0 To cmbTypeYacht.ListCount Step 1

    strTxt = cmbTypeYacht.List(intCounter)
    strTypeYacht = strTypeYacht + strTxt & vbCrLf

Next intCounter

MsgBox strTypeYacht, vbInformation, "Yacht Chartering"

strTypeYacht = ""
如果我的密码错了,让我知道我很高兴知道我的错误


请让它成为编码的初级步骤:)

@galleryguy实际上是我课程的主题之一,但我没有从我的教授那里学到太多。到目前为止,我在VB中学到的东西都来自ppl's here和其他网站。在frm2中:
frm1Name.cmbType.Items.Count
frm1Name.cmbType.Text
。。。说清楚VB6不是.NET吗?@puropoix谢谢我在我身上工作得很好。GallerGuy,在我探索VB之后,我也将探索这一点:)您需要在循环开始时从
CMBTypeacht.ListCount
中扣除1,顺便说一句,因为计数表示列表中的实体总数,但是这个列表是以零为基础的。@galleryguy不确定blackmaler说的是不是.NET,所以C#完全不相关,只会加剧混乱。那么,他得到如此多的帮助和支持又有什么不好呢;o)