Page 1 of 1

Undefined FW24 functions C2Hex, C2Bin

PostPosted: Tue Apr 14, 2009 5:14 pm
by xhbcoder
Hi Anotonio,

I am getting undefined functions error in my Clipper 5.2e/FW24 application when I try to use C2Hex and C2Bin. These are present in FW24 documentation.

Thank you,

Jose

Re: Undefined FW24 functions C2Hex, C2Bin

PostPosted: Wed Apr 15, 2009 1:43 am
by Antonio Linares
Jose,
Code: Select all  Expand view

function Main()

   MsgInfo( C2Hex( "A" ) )

return nil

function C2Hex( cChar )

   local cHex := "0123456789ABCDEF"

return SubStr( cHex, ( Asc( cChar ) / 16 ) + 1, 1 ) + SubStr( cHex, ( Asc( cChar ) % 16 ) + 1, 1 )

function C2Bin( cChar )

return SubStr( I2Bin( Asc( cChar ) ), 1, 1 )
 

Re: Undefined FW24 functions C2Hex, C2Bin

PostPosted: Wed Apr 15, 2009 3:03 pm
by xhbcoder
Antonio,

Thanks for the quick reply.

Regards,

Jose