免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
返回列表 回復 發帖

VB.NET 固定字串長度

在VB.NET中使用固定长度的String在结构中会出现一些问题,所以建议不要在VB.NET中使用固定长度的String,


The String class does support fixed-length strings.  See below.

You should use the Format method on String to create your fixed length
string.  For example,
String.Format( "|{0,-20}|", "This is a test")
will produce a left-justified fixed length string of 20 characters (the
minus sign on the 20 indicates left justify) as follows:

http://computer-programming-foru ... 16c901b89d355ae.htm
返回列表