Recent

Author Topic: [SOLVED] IntToHex outputs '0' instead of '00' when byte value is zero?  (Read 1445 times)

Gizmo

  • Hero Member
  • *****
  • Posts: 831
Code: [Select]
Val : byte;
...
Val := 0;
ShowMessage(IntToHex(Val, 1);
ShowMessage(IntToHex(Val, 00);

Using FPC 2.6.4 and Lazarus 1.4.4, both output '0' instead of '00'?  What am I doing wrong?
« Last Edit: November 30, 2015, 11:58:02 pm by Gizmo »

Gizmo

  • Hero Member
  • *****
  • Posts: 831
Re: IntToHex outputs '0' instead of '00' when byte value is zero?
« Reply #1 on: November 30, 2015, 11:57:44 pm »
My bad....using 2 outputs two zeroes. Sorry. Delete thread if you like. Pointless post.

 

TinyPortal © 2005-2018