Undefined FW24 functions C2Hex, C2Bin

Post Reply
xhbcoder
Posts: 100
Joined: Wed Oct 04, 2006 4:50 pm
Location: USA

Undefined FW24 functions C2Hex, C2Bin

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Undefined FW24 functions C2Hex, C2Bin

Post by Antonio Linares »

Jose,

Code: Select all

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 )
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
xhbcoder
Posts: 100
Joined: Wed Oct 04, 2006 4:50 pm
Location: USA

Re: Undefined FW24 functions C2Hex, C2Bin

Post by xhbcoder »

Antonio,

Thanks for the quick reply.

Regards,

Jose
Post Reply