如题

解决方案 »

  1.   

    Unit: IdGlobal
    Returns a binary string representation for an Integer value.
    function IntToBin(Value: cardinal): string;ParametersValue: cardinalCardinal value to be converted.
    ReturnsString - Binary representation of the Integer value.
    DescriptionIntToBin is a String function used to construct a binary representation of a 32-bit Integer value. The return value for IntToBin will contain a string of "0" or "1" characters for each of the bits in the integer Value.
      

  2.   

    function IntToBin(Value: cardinal): string;
      

  3.   

    uses IdGlobal;
    ...
    label1.caption := IntToBin(12);...