帮助:如何使用IF THEN语句填写两个或更多标签 [英] HELP: How do I fill two or more lables using an IF THEN statement

查看:68
本文介绍了帮助:如何使用IF THEN语句填写两个或更多标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想在IF中填写不止一个标签信息然后

声明。


我知道我可以这样做。


如果radPizza.checked = true那么

lblsubtotal.text = FormatCurrency(mdecPizzatotal)

结束如果

如果我同时拥有lblsubtotal和lblfinaltotal .....怎么会用b / b
填充lblfinaltotal.text并使用mdecPizzatotal,而不是

语句?


我试过这个但是有错误...


如果radPizza.checked = true那么

lblsubtotal.text = FormatCurrency(mdecPizzatotal)和lblFinaltotal.text =

FormatCurrency(mdecPizzatotal)

结束如果


感谢您的帮助。

解决方案

最简单的方法似乎就是摆脱和并且两个单独的

语句,不是吗?


如果radPizza.checked = true那么

lblsubtotal.text = FormatCurrency(mdecPizzatotal )lblFinaltotal.text

= FormatCurrency(mdecPizzatotal)

结束如果


或者

如果radPizza.checked = true那么

lblsubtotal.text = FormatCurrency(mdecPizzatotal)lblFinaltotal.text

= lblsubtotal.text

结束如果

-


/ Sean Mc /

替换愿望与屏幕名称联系。


我没有失败。我刚刚找到了10,000种不能工作的方法。

- 托马斯·阿尔瓦·爱迪生(1847-1931)


Jason <无** @ none.invalid>在留言中写道

新闻:uq ************** @ TK2MSFTNGP12.phx.gbl ...

你好,我想在IF然后
声明中填写不止一个标签。

我知道我可以这样做。

如果radPizza.checked = true则
lblsubtotal.text = FormatCurrency(mdecPizzatotal)
结束如果

如果我同时拥有lblsubtotal和lblfinaltotal .....怎么会用lblfinaltotal.text填充lblfinaltotal.text mdecPizzatotal在那之内,如果比
声明?

我试过这个,但是出了错误......

如果radPizza.checked = true那么
lblsubtotal。 text = FormatCurrency(mdecPizzatotal)和lblFinaltotal.text =
FormatCurrency(mdecPizzatotal)
结束如果

感谢您的帮助。



2003年10月4日星期六21:01:09 -0400,Jason <无** @ none.invalid>写道:

您好,我想在IF中填写不止一个标签信息然后
声明。

我知道我可以做这个。

如果radPizza.checked = true那么
lblsubtotal.text = FormatCurrency(mdecPizzatotal)
结束如果

如果我同时拥有lblsubtotal和lblfinaltotal .....怎么会用mdecPizzatotal填充lblfinaltotal.text,如果比
语句?

我试过这个,但是有错误...

如果radPizza.checked = true那么
lblsubtotal.text = FormatCurrency(mdecPizzatotal)和lblFinaltotal.text =
FormatCurrency(mdecPizzatotal)
结束如果

感谢您的帮助。




这样:


如果radPizza.checked = true则

lblsubtotal.text = FormatCurrency(mdecPizzatotal)

lblFinaltotal.text = FormatCurrency(mdecPizzatotal)

结束如果


// CHRIS


你好,

如果radPizza.checked = true那么
lblsubtotal.text = FormatCurrency(mdecPizzatotal)lblFinaltotal.text
= FormatCurrency(mdecPizzatotal)
如果radPizza.checked = true那么
lblsubtotal.text = FormatCurrency(mdecPizzatotal)lblFinaltotal.text
= lblsubtotal.text
结束如果




?你确实得到了你的名字!


尼克。


-

/ \ / \ / \\ \\ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \

无论如何。无论结果如何,你都会被改变。


Fergus - 2003年9月5日

/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \\ \\ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \


Hello, I would like to fill more than one lable with info in an IF then
statement.

I know I can do this.

If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal)
end if
what if I have both lblsubtotal and lblfinaltotal.....how would also
populate lblfinaltotal.text with the mdecPizzatotal within that if than
statement?

I tried this, but got errors...

If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal) And lblFinaltotal.text =
FormatCurrency(mdecPizzatotal)
end if

thank for any help.

解决方案

The easiest way seems to be just get rid of the "and" and make two seperate
statements, No?

If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal) lblFinaltotal.text
=FormatCurrency(mdecPizzatotal)
end if

Or how about:
If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal) lblFinaltotal.text
=lblsubtotal.text
end if
--

/ Sean Mc /
Replace the "wish" with the screen name to contact.

"I have not failed. I''ve just found 10,000 ways that won''t work."
- Thomas Alva Edison (1847-1931)

"Jason" <no**@none.invalid> wrote in message
news:uq**************@TK2MSFTNGP12.phx.gbl...

Hello, I would like to fill more than one lable with info in an IF then
statement.

I know I can do this.

If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal)
end if
what if I have both lblsubtotal and lblfinaltotal.....how would also
populate lblfinaltotal.text with the mdecPizzatotal within that if than
statement?

I tried this, but got errors...

If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal) And lblFinaltotal.text =
FormatCurrency(mdecPizzatotal)
end if

thank for any help.



On Sat, 4 Oct 2003 21:01:09 -0400, "Jason" <no**@none.invalid> wrote:

Hello, I would like to fill more than one lable with info in an IF then
statement.

I know I can do this.

If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal)
end if
what if I have both lblsubtotal and lblfinaltotal.....how would also
populate lblfinaltotal.text with the mdecPizzatotal within that if than
statement?

I tried this, but got errors...

If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal) And lblFinaltotal.text =
FormatCurrency(mdecPizzatotal)
end if

thank for any help.



Like this:

If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal)
lblFinaltotal.text = FormatCurrency(mdecPizzatotal)
End If

// CHRIS


Hi there,

If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal) lblFinaltotal.text
=FormatCurrency(mdecPizzatotal)
end if

Or how about:
If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal) lblFinaltotal.text
=lblsubtotal.text
end if



? You sure earnt your name!

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\


这篇关于帮助:如何使用IF THEN语句填写两个或更多标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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