How do I Create a Custom Property, part 19,214,651

J. Landman Gay jacque at hyperactivesw.com
Thu Apr 22 17:32:21 EDT 2004


On 4/22/04 11:06 AM, Klaus Major wrote:

> Hi Jaqueline,
> 
>> On 4/22/04 8:53 AM, Thomas McGrath III wrote:
>>
>>> Is this true?
>>
>>
>> There's an exception for a one-line string with a trailing return. I.e.:
>>
>>  this is line one <CR>
>>
>> Which returns "1" as the number of lines.
> 
> 
> thank you, that explains much :-)
> 
> But then, on the other hand, this should not happen in a list field:
> 
> 1
> 2
> 3
> ..empty line
> 
> Click line 4 (!) and "the hilitedlines of fld 1" returns 4,
> but "the num of lines of fld 1" returns 3 ???
> 
> And
> delete line 4 of fld 1; put the num of lines of fld 1
> still returns 3 ???
> 
> Isn't this a bit incosistent?

Maybe, but I think it is due to the way list fields work. List field 
objects count carriage returns exclusively; the engine is smarter than 
that when dealing with variables and actually counts real lines.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com


More information about the use-livecode mailing list