Page 1 of 1

Conversions

Posted: Thu Oct 26, 2006 12:22 am
by Jeff Barnes
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

Posted: Thu Oct 26, 2006 1:47 am
by Antonio Linares
Jeff,

They are FWH functions:

STR2HEX( cStr ) --> cHexStr

HEX2STR( cHexStr ) --> cStr

Posted: Thu Oct 26, 2006 1:49 am
by Antonio Linares
code sample:

Code: Select all

   MsgInfo( Str2Hex( "Hello" ) )

   MsgInfo( Hex2Str( Str2Hex( "Hello" ) ) )