When I get a gazette issue, I usually store it and may look at it later. However, #59 kinda caught my eye this time. Specifically the bit field variable.
I sometimes program with a syntax something like:
FlagByte can easily be converted to a CHR$() and stored on disk.
Since I can't get a full grip on how it's used, can somebody "translate" the above to use a bit field variable? Sounds like it's far faster and more efficient than my way of doing it.
I sometimes program with a syntax something like:
Code:
global FlagByte as string function pbmain() FlagByte = string$(8,"0") ' A full byte ...process ...process if x = y then mid$(FlagByte,4,1) = "1" ...process ...process if mid$(FlagByte,6,1) = "1" then DoSomething else DoSomethingElse end if ...process ...process end function
Since I can't get a full grip on how it's used, can somebody "translate" the above to use a bit field variable? Sounds like it's far faster and more efficient than my way of doing it.
Comment