In Peek help show difference between PeekA (0-255) and PeekB

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Zach
Addict
Addict
Posts: 1675
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: In Peek help show difference between PeekA (0-255) and P

Post by Zach »

Isn't the difference implied by the command name?

PeekA can be used on ASCII characters if that is your specific aim??
vs
PeekB which it would seem you could use on any type of data to return 1byte of that data

That's how I read it anyway
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: In Peek help show difference between PeekA (0-255) and P

Post by Tenaja »

According to the descriptions, there is no difference.

However, Fred likes to be consistent, so he created one for each data type. In case you missed the part of the Help file that describes Types, a byte is a signed number (-128 - 127), and an Ascii is one of only a few unsigned types.
Golfy
User
User
Posts: 97
Joined: Wed Mar 21, 2012 6:10 pm

Re: In Peek help show difference between PeekA (0-255) and P

Post by Golfy »

That's what I means Tenaja : global help about Peek is OK but detail description of each is the same...
but that's just a suggestion :wink:
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: In Peek help show difference between PeekA (0-255) and P

Post by Tenaja »

Well, the help files are not exactly identical; just like all of the others, he uses the exact datatype that the command works with.

It would be nice if the Types had a hotlink to the Variables pages for those who do not understand them.

OTOH, there are tens of thousands of little edits Fred can make before the help file reaches "perfection." Especially since Fred is ESL! (English as a Second Language) Unfortunately, that takes lots of time, and once you begin to recognize the patterns in the help file, it is pretty easy to see when you need to use the Search box. Personally, I'd rather he give us faster string processing. Or something like that.
Post Reply