中&瓦尔 [英] Mid & Val

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

问题描述

Hy Guys,有什么方法可以像Mid和Val VB6一样工作

功能???


感谢's

Hy Guys, what is the methods that works like the Mid and Val VB6
Functions???

Thank''s

推荐答案



Mid.Val在Microsoft.VisualBasic命名空间中可用。


问候 - OHM
$ b $bAndréAlmeidaMaldonado写道:

Mid and Val are available in the Microsoft.VisualBasic namespace.

Regards - OHM
André Almeida Maldonado wrote:
Hy Guys,有什么方法可以像Mid和Val VB6一样工作
功能???

感谢''
Hy Guys, what is the methods that works like the Mid and Val VB6
Functions???

Thank''s




问候 - OHM#在********** @ BTInternet.com


"AndréAlmeidaMaldonado" <德*** @ bol.com.br>在消息中写道

新闻:eW ************** @ TK2MSFTNGP10.phx.gbl ...
"André Almeida Maldonado" <de***@bol.com.br> wrote in message
news:eW**************@TK2MSFTNGP10.phx.gbl...
是有效的方法喜欢Mid和Val VB6函数???
is the methods that works like the Mid and Val VB6 Functions???




Mid()< = String.SubString()


当心:CLR String'的索引从零开始,而不是一个,所以


Mid(sText,2)变成sText.SubString(1)


Val()< = Integer.Parse()(或类似其他类型)


VB字符串函数仍在那里(在Microsoft.VisualBasic中)

但是,IIRC,只是底层CLR String方法的包装器。


HTH,

Phill W.



Mid() <= String.SubString()

Beware: CLR String''s index from zero, not one, so

Mid( sText, 2 ) becomes sText.SubString( 1 )

Val() <= Integer.Parse( ) (or similar for the other types)

The VB String functions are still there (in Microsoft.VisualBasic)
but, IIRC, are just wrappers for the underlying CLR String methods.

HTH,
Phill W.


Andre''


如果你想让框架接近等价物......


适合中期使用StringVariable.Substring ()


对于Val,并不是完全等价,但是Double.Parse很接近。


Kathleen


"AndréAlmeidaMaldonad O" <德*** @ bol.com.br>在留言中写道

新闻:eW ************** @ TK2MSFTNGP10.phx.gbl ...
Andre''

If you want the framework near equivalents...

For Mid use StringVariable.Substring()

For Val there isn''t an exact equivalent, but Double.Parse is close.

Kathleen

"André Almeida Maldonado" <de***@bol.com.br> wrote in message
news:eW**************@TK2MSFTNGP10.phx.gbl...
Hy Guys,什么是像Mid和Val VB6这样的方法
功能???

感谢'
Hy Guys, what is the methods that works like the Mid and Val VB6
Functions???

Thank''s



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

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