补零

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;