Writebit
BlitzPlus Forums/BlitzPlus Programming/Writebit
| ||
Is it possible to write a bit in Blitz Plus? |
| ||
No, but you can write a series of bits like this:; Code to write a series of bits: ; (Remove any unneeded flags) If flag1=True Then flags=flags+%10000000 If flag2=True Then flags=flags+%01000000 If flag3=True Then flags=flags+%00100000 If flag4=True Then flags=flags+%00010000 If flag5=True Then flags=flags+%00001000 If flag6=True Then flags=flags+%00000100 If flag7=True Then flags=flags+%00000010 If flag8=True Then flags=flags+%00000001 WriteByte {outfile},flags Where {outfile}=saved file |
| ||
Thanks, man. |
| ||
Sure. ;) |