选择案例不起作用 [英] select case not working
本文介绍了选择案例不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
你可以帮我吗?我有一个组合框,其值为第一个月,第二个月和第二个月。等,一个文本框,用于放置重量,长度和ccirc等细节。我想要做的是当用户输入细节并单击按钮时,文本框wres,lres和ccircres将显示结果,例如high,low和low。或正常。我在按钮的点击事件中尝试了以下代码,但它不会显示任何内容......
Hi everyone,
could you please help me. i have a combo box that have the values "1st month", "2nd month" etc, a text box to put details such as weight, length and ccirc. what i want to do is when a user inputs the details and click a button, the text box wres, lres and ccircres will show the results such as "high", "low" or "normal". i tried the following code in the on click event of the button but it wont show anything...
展开 | 选择 | 换行 | 行号
推荐答案
我首先只有*一个*选择案例...结束在程序中选择。
I would start by only having *one* Select Case...End Select in the procedure.
展开 | 选择 | Wrap | 行号
hi,
感谢您的快速回复。我尝试了但仍然没有显示任何值。
Thanks for the quick reply. i tried it but still it''s not showing any values.
将代码放在ComboBox的AfterUpdate事件中以获得更多自动操作。确保使用Me.Age返回的内容从MsgBox开始,该值显示您作为诊断的值。
Put the code in the AfterUpdate event of the ComboBox for more automatic operation. Make sure what is being returned with Me.Age By starting with a MsgBox that displays the value for you as a diagnostic.
这篇关于选择案例不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文