Conversions

Conversions

Postby Jeff Barnes » Thu Oct 26, 2006 12:22 am

Hi Everybody,

A while ago I came across a function STR2HEX() ... I have no idea how I found this.

1. Where is this documented ... I can't find it under FWH or xHarbour.

2. Is there a similar function to convert Hex to Dec ?


Thanks,

Jeff
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby Antonio Linares » Thu Oct 26, 2006 1:47 am

Jeff,

They are FWH functions:

STR2HEX( cStr ) --> cHexStr

HEX2STR( cHexStr ) --> cStr
regards, saludos

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

Postby Antonio Linares » Thu Oct 26, 2006 1:49 am

code sample:
Code: Select all  Expand view
   MsgInfo( Str2Hex( "Hello" ) )

   MsgInfo( Hex2Str( Str2Hex( "Hello" ) ) )
regards, saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 103 guests