VB协助 [英] VB Assistance

查看:72
本文介绍了VB协助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在找出家庭作业问题的逻辑时遇到了一些麻烦,

因为我的老师已经出城几天了,我以为我会这样做
在这里办理入住,看看是否有人可以帮助我。


我有lstClasses,它有5个班级列表。我有lstCities,

有5个城市的列表。现在每个班级都有注册费

和不同的天数(注册费为500美元,班级为

1,为期3天),每个城市都有住宿率每晚。

因此,用户应该在第一个框中选择班级,然后在第二个框中选择城市

,费用应该出现在第三个框中,并且

当按下一个按钮时,总计出现在表格的其他地方。


如果你们能帮助我思考,我真的很感激

我需要附加值的逻辑,或计算值。我认为有一种比每个

组合更容易的方式。


提前谢谢。


M

I''m having some trouble figuring out the logic to a homework problem,
and since my teacher is out of town for a few days I thought I would
check in here and see if someone can help me.

I have lstClasses, which has a list of 5 classes. I have lstCities,
which has a list of 5 cities. Now each class has registration fee
and a different number of days (, registration fee is $500 for Class
1 and goes for 3 days) and each city has a lodging rate per night.
So, the user should select the class in the first box, then the city
in the second box and the charges should appear in the third box, and
when a button is pressed a grand total appears elsewhere on the form.

I would really appreciate it if you guys could help me think through
the logic I need to attach the values, or calculate the values. I
really think there is an easier way than If then Else for every
combination.

Thanks in advance.

M

推荐答案

500 for Class

1 and go 3天)并且每个城市都有每晚住宿费用。

因此,用户应该在第一个框中选择班级,然后在第二个框中选择城市

并且收费应该出现在第三个方框中,并且当按下按钮时,
将显示在窗体的其他位置。


我真的很感激它如果你们可以帮助我思考

我需要附加值的逻辑,或者计算值。我认为有一种比每个

组合更容易的方式。


提前谢谢。


M

500 for Class
1 and goes for 3 days) and each city has a lodging rate per night.
So, the user should select the class in the first box, then the city
in the second box and the charges should appear in the third box, and
when a button is pressed a grand total appears elsewhere on the form.

I would really appreciate it if you guys could help me think through
the logic I need to attach the values, or calculate the values. I
really think there is an easier way than If then Else for every
combination.

Thanks in advance.

M


因为我们在解决家庭作业方面并不是真的很重要,我会

只是说你应该尝试将整体问题分解为它的b / b $ b组成部分然后从那里构建。听起来你已经确定你确实需要决策逻辑。现在,问问自己你需要弄清楚什么是什么,以及VB.NET为决策提供的语法

代码。

< mo * ****** @gmail.com在留言中写道

news:11 ********************** @ w1g2000hsg.googlegro ups .com ...
Since we''re not real big around here on solving homework assignments, I''ll
simply say that you should try to break the overall problem down to its
constituent parts and then build from there. It sounds like you''ve
determined that you do need decision making logic. Now, ask yourself what
you need to figure out and what syntax VB.NET offers for decision making
code.
<mo*******@gmail.comwrote in message
news:11**********************@w1g2000hsg.googlegro ups.com...

我在弄清楚作业问题的逻辑时遇到了一些麻烦,

因为我的老师是出城几天我以为我会在这里办理入住手续,看看是否有人可以帮助我。


我有lstClasses,有一个清单5节课。我有lstCities,

有5个城市的列表。现在每个班级都有注册费

和不同的天数(注册费
I''m having some trouble figuring out the logic to a homework problem,
and since my teacher is out of town for a few days I thought I would
check in here and see if someone can help me.

I have lstClasses, which has a list of 5 classes. I have lstCities,
which has a list of 5 cities. Now each class has registration fee
and a different number of days (, registration fee is


500 for Class

1 and goes 3天)并且每个城市都有每晚住宿费用。

因此,用户应该在第一个框中选择班级,然后在第二个框中选择城市

并且收费应该出现在第三个方框中,并且当按下按钮时,
将显示在窗体的其他位置。


我真的很感激它如果你们可以帮助我思考

我需要附加值的逻辑,或者计算值。我认为有一种比每个

组合更容易的方式。


提前谢谢。


M
500 for Class
1 and goes for 3 days) and each city has a lodging rate per night.
So, the user should select the class in the first box, then the city
in the second box and the charges should appear in the third box, and
when a button is pressed a grand total appears elsewhere on the form.

I would really appreciate it if you guys could help me think through
the logic I need to attach the values, or calculate the values. I
really think there is an easier way than If then Else for every
combination.

Thanks in advance.

M



这篇关于VB协助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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