03-03-2009, 04:50 PM
03-03-2009, 05:16 PM
Format للتحكم في شكل او هيئة النص المخرج
راجع هذا
http://www.delphibasics.co.uk/RTL.asp?Name=Format
و جرب منه هذا المثال لكي تفهم اكثر
PHP كود :
var
text : string;
Begin
ShowMessage(Format('Decimal = %d', [-123]));
ShowMessage(Format('Exponent = %e', [12345.678]));
ShowMessage(Format('Fixed = %f', [12345.678]));
ShowMessage(Format('General = %g', [12345.678]));
ShowMessage(Format('Number = %n', [12345.678]));
ShowMessage(Format('Money = %m', [12345.678]));
ShowMessage(Format('Pointer = %p', [addr(text)]));
ShowMessage(Format('String = %s', ['Hello']));
ShowMessage(Format('Unsigned decimal = %u', [123]));
ShowMessage(Format('Hexadecimal = %x', [140]));
end;