Вниз
Скачать: CL | DM;

функция format   Найти похожие ветки 

← →
Unknown   (2003-09-20 10:42) [0]

В нелпе написанно:
Format strings
Format strings specify required formats to general-purpose formatting routines.

...

The following table summarizes the possible values for type:

d - Decimal. The argument must be an integer value. The value is converted to a string of decimal digits. If the format string contains a precision specifier, it indicates that the resulting string must contain at least the specified number of digits; if the value has less digits, the resulting string is left-padded with zeros.
...

я пишу ShowMessage(Format("%10d", [4]));
но вместо нулей в стринг добавляются пробелы.

Как мне все тки получить стринг дополненый с леав с нулями с помощью функции формат как это описанно в хелп?


← →
ZEE ©   (2003-09-20 10:55) [1]

Format("%.10d",[4])


← →
jack128 ©   (2003-09-20 10:59) [2]


> If the format string contains a precision specifier


← →
Unknown   (2003-09-20 11:01) [3]

понял, спасибо



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.015 c
3-3763
you
2003-09-12 07:05
2003.10.02
как уменьшить размер базы данных???


1-3974
dataMaster
2003-09-19 10:53
2003.10.02
Как (или где) поймать изменение вводимых Items


3-3783
Andrey V.
2003-09-11 14:32
2003.10.02
Кто как деньги хранит


1-3930
tim5
2003-09-20 22:37
2003.10.02
Вывод на печать изображения с Image.


14-4058
DeMoN-777
2003-09-14 18:25
2003.10.02
Проблемка с 1С




   Наверх