正确的功能 [英] right function

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

问题描述

对所有人来说,


我正在使用下面的当前代码,由于某种原因,我没有把任何东西变成我的变量。我期待看到efghijk。我已经重建了

我的项目/解决方案,但仍无济于事。这段代码曾经一度工作过

但是我无法解释为什么它不起作用。任何帮助或建议。


Dim account As String

account =" abcdefghijk"


Dim TESTing As String = Microsoft.VisualBasic.Right(account,7)


谢谢,

Michael

解决方案



如果你写它是否有用:


Dim TESTing As String


TESTing = Microsoft.VisualBasic.Right(account,7)

Michael de Vera写道:


致所有人,


我正在使用下面的当前代码,由于某种原因,我没有把任何东西变成我的变量。我期待看到efghijk。我已经重建了

我的项目/解决方案,但仍无济于事。这段代码曾经一度工作过

但是我无法解释为什么它不起作用。任何帮助或建议。


Dim account As String

account =" abcdefghijk"


Dim TESTing As String = Microsoft.VisualBasic.Right(account,7)


谢谢,

Michael

John,


我尝试了代码,但它仍然无效。


Michael


" John Bailo"写道:


>

如果你写它是否有效:


Dim TESTing作为String


TESTing = Microsoft.VisualBasic.Right(account,7)


Michael de Vera写道:


对所有人来说,


我正在使用下面的当前代码,由于某种原因我没有得到

我的变量中的任何东西。我期待看到efghijk。我已经重建了

我的项目/解决方案,但仍无济于事。这段代码曾经一度工作过

但是我无法解释为什么它不起作用。任何帮助或建议。


Dim account As String

account =" abcdefghijk"


Dim TESTing As String = Microsoft.VisualBasic.Right(account,7)


谢谢,

Michael



Michael de Vera< MS *********** @ nospam.nospamwrote:


我正在使用下面的当前代码,由于某种原因,我没有把任何东西变成我的变量。我期待看到efghijk。我已经重建了

我的项目/解决方案,但仍无济于事。这段代码曾经一度工作过

但是我无法解释为什么它不起作用。任何帮助或建议。


Dim account As String

account =" abcdefghijk"


Dim TESTing As String = Microsoft.VisualBasic.Right(account,7)



你能发一个简短但完整的程序来演示

问题吗? br />

请参阅 http:/ /www.pobox.com/~skeet/csharp/complete.html 了解详情

我的意思是什么。


-

Jon Skeet - < sk *** @ pobox.com>
http://www.pobox.com/~skeet 博客: http://www.msmvps.com/jon.skeet

如果回复小组,请不要给我发邮件


To all,

I''m using the current code below and for some reason I''m not getting
anything into my variable. I''m expecting to see "efghijk". I have rebuilt
my project/solution but still to no avail. This code has worked at one point
but I can''t explain why it doesnt work. Any help or suggetstions.

Dim account As String
account = "abcdefghijk"

Dim TESTing As String = Microsoft.VisualBasic.Right(account, 7)

Thanks,
Michael

解决方案


Does it work if you write it:

Dim TESTing As String

TESTing = Microsoft.VisualBasic.Right(account, 7)
Michael de Vera wrote:

To all,

I''m using the current code below and for some reason I''m not getting
anything into my variable. I''m expecting to see "efghijk". I have rebuilt
my project/solution but still to no avail. This code has worked at one point
but I can''t explain why it doesnt work. Any help or suggetstions.

Dim account As String
account = "abcdefghijk"

Dim TESTing As String = Microsoft.VisualBasic.Right(account, 7)

Thanks,
Michael


John,

I tried the code but it still did not work.

Michael

"John Bailo" wrote:

>
Does it work if you write it:

Dim TESTing As String

TESTing = Microsoft.VisualBasic.Right(account, 7)
Michael de Vera wrote:

To all,

I''m using the current code below and for some reason I''m not getting
anything into my variable. I''m expecting to see "efghijk". I have rebuilt
my project/solution but still to no avail. This code has worked at one point
but I can''t explain why it doesnt work. Any help or suggetstions.

Dim account As String
account = "abcdefghijk"

Dim TESTing As String = Microsoft.VisualBasic.Right(account, 7)

Thanks,
Michael



Michael de Vera <MS***********@nospam.nospamwrote:

I''m using the current code below and for some reason I''m not getting
anything into my variable. I''m expecting to see "efghijk". I have rebuilt
my project/solution but still to no avail. This code has worked at one point
but I can''t explain why it doesnt work. Any help or suggetstions.

Dim account As String
account = "abcdefghijk"

Dim TESTing As String = Microsoft.VisualBasic.Right(account, 7)

Could you post a short but complete program which demonstrates the
problem?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too


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

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