[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2008-03-24T01:23:13-05:00 http://petesqbsite.com/phpBB3/app.php/feed/topic/2587 2008-03-24T01:23:13-05:00 2008-03-24T01:23:13-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=16855#p16855 <![CDATA[Opening something in Hexadecimal]]> val("&h"+text) converst from hex.
you might want to zero pad the hex number

t$=hex$(asciivalue)
if len(t$)<2 then t$="0" + t

or perhaps

t$=string$(2-len(t$),&h30)+t$ 'adaptable to padding to more than 2 places.
Regards,
Michael

Statistics: Posted by Michael Calkins — Mon Mar 24, 2008 1:23 am


]]>
2008-02-03T01:45:16-05:00 2008-02-03T01:45:16-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=16546#p16546 <![CDATA[Re: Opening something in Hexadecimal]]>
How do I open something up in hexadecimal in Qbasic, then edit it?
Read it

Code:

CLSPRINT "First 5 characters in test.exe"PRINTDIM X AS STRING * 1OPEN "test.exe" FOR BINARY AS #1FOR i = 1 TO 5  GET #1, i, X  PRINT ASC(X);NEXT iPRINTCLOSE #1
To write, use PUT.

If you want hex, then convert the ASCII.

Mac

Statistics: Posted by Mac — Sun Feb 03, 2008 1:45 am


]]>
2008-02-02T23:55:53-05:00 2008-02-02T23:55:53-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=16545#p16545 <![CDATA[Opening something in Hexadecimal]]>
Im guess it woudl go something like this....

Code:

CLSOPEN "test.exe" FOR BINARY AS #1'a for next loop hereINPUT #1, hexnumbers%CLOSE #1

Statistics: Posted by Sinuvoid — Sat Feb 02, 2008 11:55 pm


]]>