FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper Undefined FW24 functions C2Hex, C2Bin
Posts: 100
Joined: Wed Oct 04, 2006 04:50 PM
Undefined FW24 functions C2Hex, C2Bin
Posted: Tue Apr 14, 2009 05:14 PM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Undefined FW24 functions C2Hex, C2Bin
Posted: Wed Apr 15, 2009 01:43 AM
Jose,
Code (fw): Select all Collapse
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
Posts: 100
Joined: Wed Oct 04, 2006 04:50 PM
Re: Undefined FW24 functions C2Hex, C2Bin
Posted: Wed Apr 15, 2009 03:03 PM

Antonio,

Thanks for the quick reply.

Regards,

Jose

Continue the discussion