调用特定控件(对象) [英] Calling Specific Control (object)

查看:74
本文介绍了调用特定控件(对象)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,专家,

我正在使用CallByName()

但是为了创建查询,我需要指定参数,我有3个组合框4个文本框..

如果用户选择Combobox1,Textbox2和textbox4 ...

参数将为CallByName(Combobox1,Textbox2和textbox4)
参数可以是单个或大于2..

我的另一个问题是,我将需要生成53个报告,并且每个报告都取决于用户将从3个组合框和4个文本框中选择的内容...

请帮助我!

Hi Experts,

I''m using CallByName()

But in order to create query, i need to specify the parameters, I have 3 combobox 4 textboxes..

If user select Combobox1, Textbox2 and textbox4...

parameters will be CallByName(Combobox1, Textbox2 and textbox4)
parameters can be single or more than 2..

my other problem is that i will need to generate 53 reports, and each report rely on whats the user will select from the 3 comboboxes and 4 textboxes...

Please Help Me!

推荐答案

此功能在此处进行了详细说明:
—SA
This function is described in detail here: http://msdn.microsoft.com/en-us/library/chsc1tx6%28v=VS.90%29.aspx[^].

I''m 99.99% sure you never need it. Actually, nobody really needs it, because the effect of this function can be easily obtain it from Reflection, and call by name is unreliable, because should anyone misspell a name or use an object of wrong type, a compiler won''t detect a problem.

Here is my advice: when asking a question, explain an ultimate goal of using one or another technique, otherwise who knows is the whole idea right or not.

As to "my other problem", there is not formulation of any problem. "I will need to generate 53 reports". Well, generate them, you got my approval. :-)

—SA


这篇关于调用特定控件(对象)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆