byte - where is it documented?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Simon Knight
Posts: 919
Joined: Wed Nov 04, 2009 11:41 am

byte - where is it documented?

Post by Simon Knight » Sat Mar 05, 2011 6:38 pm

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
best wishes
Skids

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: byte - where is it documented?

Post by BvG » Sat Mar 05, 2011 6:58 pm

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.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Simon Knight
Posts: 919
Joined: Wed Nov 04, 2009 11:41 am

Re: byte - where is it documented?

Post by Simon Knight » Sat Mar 05, 2011 7:02 pm

Currently it's a synonym for "character"
I have to ask - how do you know that?
best wishes
Skids

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: byte - where is it documented?

Post by BvG » Sat Mar 05, 2011 7:22 pm

It was in one of the release notes. It's completely undocumented otherwise
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10048
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: byte - where is it documented?

Post by FourthWorld » Sat Mar 05, 2011 8:45 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply