Arrays
#9

Sorry, I disagree with you. Because, in the Pascal format has no arguments to the variable in the. ... Below is an example

PHP код:

var
  
text string;
begin
  
// Just 1 data item
  
ShowMessage(Format('%s', ['Hello']));
  
// A mix of literal text and a data item
  
ShowMessage(Format('String = %s', ['Hello']));
  
ShowMessage('');
  
// Examples of each of the data types
  
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
If you think about. then we get a variable is needed to define the format for future use ...

Or am I wrong?
Reply


Messages In This Thread
Arrays - by sent161 - 29.08.2011, 22:09
Re: Arrays - by Backwardsman97 - 29.08.2011, 22:51
Re: Arrays - by PowerPC603 - 29.08.2011, 23:19
Re: Arrays - by sent161 - 29.08.2011, 23:20
Re: Arrays - by Backwardsman97 - 30.08.2011, 00:12
Re: Arrays - by Pghpunkid - 30.08.2011, 00:18
Re: Arrays - by sent161 - 30.08.2011, 13:08
Re: Arrays - by JaTochNietDan - 30.08.2011, 13:12
Re: Arrays - by sent161 - 30.08.2011, 19:47
Re: Arrays - by Pghpunkid - 31.08.2011, 09:57

Forum Jump:


Users browsing this thread: 3 Guest(s)