"Negative" byte values and chars...
Posted: Fri Jun 02, 2006 12:21 pm
Code updated for 5.20+. PureBasic now support 'PeekA()' for unsigned.
Be careful, when manipulating strings with the PeekB command!
When the result is a char represented by a value between 0 and 127 everything will be fine, but there could be a problem when dealing with other chars like I tried with the following line...
this will never get #True until you change the line to...
So be careful
Be careful, when manipulating strings with the PeekB command!
When the result is a char represented by a value between 0 and 127 everything will be fine, but there could be a problem when dealing with other chars like I tried with the following line...
Code: Select all
If PeekB(@s+Dummy)='Ã'
Code: Select all
If PeekB(@s+Dummy)&$ff='Ã'