ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Convert Char to Binary

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Convert Char to Binary

    Hi All,

    How to convert Char to Binary?
    I have Char 10A Inz('123456')
    Binary 9b 0
    Please help me, how to convert?

    Thanks in Advance,
    Vishal.

  • #2
    Re: Convert Char to Binary

    do not use the B data type, the I (integer) data type is much faster and the B data type is only there for backward compatibility. and you can use Binary = %int(Char)
    I'm not anti-social, I just don't like people -Tommy Holden

    Comment


    • #3
      Re: Convert Char to Binary

      Thanks Tom.

      Comment

      Working...
      X