I
import
Unregistered / Unconfirmed
GUEST, unregistred user!
:能否用format函数将 不足3位的数前补零?如8->008/12->012
API :int wsprintf(
LPTSTR lpOut, // pointer to buffer for output
LPCTSTR lpFmt, // pointer to format-control string
... // optional arguments
);
%[-][#][0][width][.precision]type
0 Pad the output value with zeros to fill the field width. If this field is omitted, the output value is padded with blank spaces
可以:
例如Format('%.5d',[12]);
API :int wsprintf(
LPTSTR lpOut, // pointer to buffer for output
LPCTSTR lpFmt, // pointer to format-control string
... // optional arguments
);
%[-][#][0][width][.precision]type
0 Pad the output value with zeros to fill the field width. If this field is omitted, the output value is padded with blank spaces
可以:
例如Format('%.5d',[12]);