补零

PadLeft

 

this->Caption= this->Caption.StringOfChar('0',10-Caption.Length())+Caption;

 UnicodeString __fastcall StringOfChar(WideChar Ch, int Count);

str = str.StringOfChar('0', 10 - str.Length()) + str;

 

posted on 2016-05-17 16:36  lypzxy  阅读(345)  评论(0编辑  收藏  举报