DelphiBasics : Basic : Other
 

Forum :: Other :: DelphiBasics : Basic

Example code : Showing the capacity of Cardinal
var
  min, max : Cardinal;
begin
  // Set the minimum and maximum values of this data type
  min := Low(Cardinal);
  max := High(Cardinal);
  ShowMessage('Min cardinalvalue = '+IntToStr(min));
  ShowMessage('Max cardinalvalue = '+IntToStr(max));
end;

Show full unit code
   Min cardinal value = 0
   Max cardinal value = 4294967295

0 Comment

  • Have no comment.

Comment Forum

 
 
 
Share This Topic Login with Facebook