调用特定控件(对象) [英] Calling Specific Control (object)
本文介绍了调用特定控件(对象)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,专家,
我正在使用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!
推荐答案
此功能在此处进行了详细说明: ^ ].
我99.99%的人确定您永远不需要它.实际上,没有人真正需要它,因为此功能的效果很容易从Reflection中获得,并且按名称进行调用是不可靠的,因为任何人都应该使用它错误拼写名称或使用错误类型的对象,编译器将不会检测到问题.
这是我的建议:提出问题时,请说明使用一种或另一种技术的最终目标,否则谁知道整个想法正确与否.
至于我的其他问题",没有任何问题的表述. 我将需要生成53个报告".好吧,生成它们,就得到了我的认可. :-)
—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屋!
查看全文