Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-02

Outputting a set for debugging

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

What type can I cast a set (actually Lazarus's TShiftState) to, in order to be compatible with IntToHex() for debugging output? Or is there some other preferred procedure?

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]
Mattias Gaertner
to Mark Morgan Lloyd
What type can I cast a set (actually Lazarus's TShiftState) to, in order to be compatible with IntToHex() for debugging output? Or is there some other preferred procedure?

Why not use dbgs(ShiftState) ?

Mattias

Mark Morgan Lloyd
to Mattias Gaertner
Mattias Gaertner wrote 8 lines
On Tue, 21 Feb 2012 21:19:52 +0000 Mark Morgan Lloyd wrote: > What type can I cast a set (actually Lazarus's TShiftState) to, in order > to be compatible with IntToHex() for debugging output? Or is there some > other preferred procedure? Why not use dbgs(ShiftState) ?

Ignorance :-)

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]