Page 1 of 1

byte - where is it documented?

Posted: Sat Mar 05, 2011 6:38 pm
by Simon Knight
I am playing with a binary file and copied the following line from one of the tutorials:

Code: Select all

put byte tCount of theBinaryData into theByte  --where is byte defined, dictionary search does not find it ?
and also

Code: Select all

repeat for each byte theByte in theBinaryData
    -- process theByte here (but don't modify directly)
end repeat
Where in the documentation is the word byte documented and are there other useful commands such as bit?

Simon

Re: byte - where is it documented?

Posted: Sat Mar 05, 2011 6:58 pm
by BvG
It's not a command, but a chunk expression. Currently it's a synonym for "character", but I think that is supposed to change when unicode support is improved.

Bit does not exist.

Re: byte - where is it documented?

Posted: Sat Mar 05, 2011 7:02 pm
by Simon Knight
Currently it's a synonym for "character"
I have to ask - how do you know that?

Re: byte - where is it documented?

Posted: Sat Mar 05, 2011 7:22 pm
by BvG
It was in one of the release notes. It's completely undocumented otherwise

Re: byte - where is it documented?

Posted: Sat Mar 05, 2011 8:45 pm
by FourthWorld
BvG wrote:It was in one of the release notes. It's completely undocumented otherwise
Noted as a documentation bug:
http://quality.runrev.com/qacenter/show_bug.cgi?id=2824

Thanks for mentioning that. It really should be there.