[futurebasic] Re: [FB] how to find the number of lines in an edit field

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 1999 : Group Archive : Group : All Groups

From: Joe Lewis Wilkins <PepeToo@...>
Date: Sun, 21 Nov 1999 21:19:13 -0800
Brian Stevens wrote:

> >Joe said:
> >
> >If that is so, then what is the previous field "teh.teNLines" if not the same
> >thing? I'm referring to page 305 in the FBII Reference Manual.
> Joe---I'm looking at page 305 (covers TEHANDLE function) and now I'm a
> little confused about your question.
> All the field names (like teNlines% and teLines etc.) are all predefined in
> FB. teNlines% is the number of lines and teLines specifes the position of
> line starts. I don't see a "previous field". The field prior to  teNlines%
> is teCarHook& which is unrelated to # of lines in the EF.  I'm probably
> missing something here.  Sometimes my brain just refuses to cooperate no
> matter how obvious something is.

Hi Brian,

No, you're not confused. I was - I think. I should have looked at the rest of the
examples. This is a little different than I thought, and you are entirely correct
- as was bowerbird. I thought the double dereference was in regard to the
teRec.teLines.teNLines*2. (using the terminology in the Manual). Further on it
describes dot and double dot referencing. Referring to Handles and Pointers.
Since I've never actually used ANY of these values, I'm going to have to test
them myself to be satisfied that the values returned are the desired values -
though they certainly appear to be - as documented.

Since Jim was the original inquirer - and I said at the outset that I should
probably let bowerbird answer his question, I hope he has not gotten too confused
by all of this.

Part of what I said was correct, however, my questioning bowerbird was
inappropriate. I can't apologize for being "stupid", but I should and do!
ALTHOUGH, for the life of me, I do not see why we should have to double dot to
access the values in the fields. It STILL seems to me that:

numberOfLines% = teRec.teNLines%

Perhaps some higher power can explain this. I hope.

Joe Wilkins