请问16进制怎么进行 按位或(or) 操作(50)

Discussion in 'Object Pascal' started by dingsword, Oct 31, 2010.

  1. di

    dingsword Member

    Apr 1, 2015
    我现在想要对16进制进行 or 操作,但是不知道怎么进行.0x20 0x0F 0xF0 0x00 0xFF 0x08想对这几个16进制数进行 or 操作,最终得到一个数请问有谁知道,谢谢!!!
     
  2. Vs

    Vsun Member

    Apr 1, 2015
    var x: integer;begin x := $20 or $0F or $F0 or $00 or $FF or $08
    ShowMessage(IntTohex(i,4));end;
     
  3. di

    dingsword Member

    Apr 1, 2015