在VB.NET中如何运用StrConv

来源:互联网 发布:pc3000数据恢复论坛 编辑:程序博客网 时间:2024/05/17 02:56
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
VB.NET中如何运用StrConv
--------------------------------------------------------------------------------


作者:任敦浩
做过VB6.0 的程序员都知道编译器会帮你选择地域,所以不需要程序员关心。在VB.NET 中情况有一些改变。

VB.NETStrConv 函数中有一个地域编号参数。如果你的操作系统内核是日文的,VB.NET是英文的,你希望将半角“p” 转换为全角 “p”时,这个参数就很有用。        Public Shared Function StrConv( _
   ByVal Str As String, _
   ByVal Conversion As Microsoft.VisualBasic.VBStrConv, _
   Optional ByVal LocaleID As Integer,
) As String


写法如下: StrConv(“p”,VBwide,1041)( 日本的LocaleID=0X0411(1041)) ,其他国家编号请参照:ms-help://MS.VSCC/MS.MSDNVS/intl/nls_238z.htm


关于作者:
任敦浩是GrapeCity海外事业部开发员,具有六年的开发经验,从事日本项目开发三年多,熟悉VB, VB.NET SQL Server等。



VB.NET中如何运用StrConv';return true">
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>