Undefined FW24 functions C2Hex, C2Bin

Undefined FW24 functions C2Hex, C2Bin

Postby xhbcoder » Tue Apr 14, 2009 5: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
xhbcoder
 
Posts: 100
Joined: Wed Oct 04, 2006 4:50 pm
Location: USA

Re: Undefined FW24 functions C2Hex, C2Bin

Postby Antonio Linares » Wed Apr 15, 2009 1:43 am

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41205
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Undefined FW24 functions C2Hex, C2Bin

Postby xhbcoder » Wed Apr 15, 2009 3:03 pm

Antonio,

Thanks for the quick reply.

Regards,

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


Return to FiveWin for CA-Clipper

Who is online

Users browsing this forum: No registered users and 2 guests