So many things to say, so few words to use and English is not my mother tongue !
I try to be short and concise and I will use TextInputStream for demonstration.
Auto complete is a real good help, and now it is ‘context sensitive’.
In other words, you will get different entries depending on what is before the TextInputStream occurence (reference, whatever):
[code]Dim t As TextInputStream
t. will display:
Close
Constructor
Encoding
LastErrorCode
Open
PositionB[/code]
[code]Dim t As TextInputStream
While Not t. will display:
Encoding
EOF
Handle
HandleTypeFileNumber = 3
HandlrTypeFilePointer : 2
HandleFileTypeWin32Handle = 1
LastErrorCode
Open
PositionB
Read
ReadAll
ReadError
ReadLine
[/code]
Doing so (but after reading the example there: http://documentation.xojo.com/index.php/TextInputStream [search While Not textInput.EOF]) I discovered (back) EOF.
I searched about EOF description (I do not found it in the Property description) and had hard times 'till - with the LOCAL docs - I copy / Paste the whole page from Xojos Help into a TextEdit page and I searched from there to find it.
This leads into a great waste of time and I do not talk about the time to write this text.
I think you should file a feedback report against the documentation. EOF should be listed as a property (it’s really a method) with the other properties/methods.
The image below is what you will get if you typed While Not t.:
And this image is what you will get if you type t.:
This is the first time I am able to pass an image to this forum. I have to thank the person who gave me the tip some times ago. Tip I forgot, but a search allows me to get it bacl.
I could be wrong, but I think when you type t. you are seeing things that can be called/set
while not t. lists items that can be compared to false… number values, methods that return numbers or booleans.
Norman, you also are right, but if you do not saw EOF in the list of properties in the TextInputStream definition page, how can you know EOF exists ?
That is the point I wanted to highlight:
I do not saw it (EOF) in the TextInputStream definition page,
It is not shown with Auto Complete,
It does not exists.
And, because I was watching carefully one of the examples, I saw it and started to investigate and found it.
It may be a good idea to mathe some arrangements to the docs page for people like me or worst
This can be done (how ?) in the docs, but maybe also in the Auto Complete rect: contextually available entries are drawn standard, nit available here BUT existsing entries can (?) be in Red (as an example, if it is possible). Read means it exists, but it cannot be used here (no syntactic sense here)
Actually I would find that far more helpful. I’m always forgetting the name of a property or method and typing class. to see the list. I’ve often wondered why it didn’t always show everything, now I know.