home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
database
/
trl14db.zip
/
TRLPRG.EXE
/
HEX.PRG
< prev
next >
Wrap
Text File
|
1990-10-22
|
520b
|
22 lines
***********
* HEX.PRG
* by Tom Rettig and Leonard Zerman
* Placed in the Public Domain by Tom Rettig Associates, 10/22/1990.
*
* SYNTAX: DO HEX WITH <expN>
* RETURN: <expC> hexadecimal value of <expN>
* 4-byte string if -32768 <= <expN> <= 65535
* 8-byte string otherwise
***********
PARAMETERS par1
CALL Trpass WITH par1
CALL Trexe WITH "HEX"
CALL Trexe WITH "TRRETCLEN"
IF fox
PRIVATE tr_temp
tr_temp = SUBSTR(tr_retc,1,tr_retn)
RETURN (tr_temp)
ENDIF
* eof hex *