胖在一方

出得厅堂入得厨房的胖子

导航

vb的定长字符串在vb.net里面的转换

Posted on 2006-09-12 17:36  胖在一方  阅读(1675)  评论(1)    收藏  举报
原先在vb中可以设定定长的字符串
dim str as string * 40
在vb.net中的定义方法如下

1 、引用Microsoft.Visual Basic .Net.Compatibility Runtime.dll

1'引用dll
2Imports Microsoft.VisualBasic.Compatibility
3'声明定长字符串

4Dim str As New VB6.FixedLengthString(40)