delphi4arab منتديات دلفي للعرب
ما هو عمل التعليمة Format - نسخة قابلة للطباعة

+- delphi4arab منتديات دلفي للعرب (https://delphi4arab.net/forum)
+-- قسم : منتديات دلفي للعرب التعليمية (https://delphi4arab.net/forum/forumdisplay.php?fid=3)
+--- قسم : سؤال و جواب حول دلفي (https://delphi4arab.net/forum/forumdisplay.php?fid=15)
+--- الموضوع : ما هو عمل التعليمة Format (/showthread.php?tid=655)



ما هو عمل التعليمة Format - عبدالله زعرور - 03-03-2009

السلام عليكم
ما هو عمل التعليمة Format وما هي
%s
%d
%
.
.
.


ما هو عمل التعليمة Format - محمد عبد العزيز - 03-03-2009


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;