Hello Michael
On Saturday, 13 July 1996 13:49:00, you wrote to Tim Hutzler:
MR> I CANT use LONGs instead of DWORDs in this case, has someone a
MR> source which does the same thing as the HEX$-command does and works
MR> with DWORDS? I'm in a big need of such a source... :(
The following function works with LONG's and DWORD's:
/*
function DHex (ANY) AS STRING
DIM Lo AS WORD, Hi AS WORD
ASM LES BX, [BP+6]
ASM MOV AX, ES:[BX]
ASM MOV Lo, AX
ASM MOV AX, ES:[BX+2]
ASM MOV Hi, AX
DHex = RIGHT$("000" + HEX$(Hi), 4) + RIGHT$("000" + HEX$(Lo), 4)
end function
*/
I hope it helps you.
Friendly greeting you,
Hans Lunsing, Fido : 2:281/607.214, 2:282/610.12
Internet : jlunsing@doge.nl
--- Terminate 4.00/Pro
# Origin: BBS De Lauwers For BASIC Programmers! ++3159468840
(119:3102/101.12)
---------------
* Origin: United Bbs Systems Europe MailGate to -> Fido USA (2:2802/337.0)
|