Conversions

Post Reply
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Conversions

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

Post by Antonio Linares »

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: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

code sample:

Code: Select all

   MsgInfo( Str2Hex( "Hello" ) )

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

Antonio Linares
www.fivetechsoft.com
Post Reply