Handling of final delimter (was Re: "this me"?)

J. Landman Gay jacque at hyperactivesw.com
Sun Aug 11 23:35:20 EDT 2013


On 8/11/13 10:33 PM, J. Landman Gay wrote:
> On 8/11/13 10:10 PM, Mark Wieder wrote:
>> Jacque-
>>
>> Sunday, August 11, 2013, 7:25:47 PM, you wrote:
>>
>> put "this is line 1" & cr into field 1
>> put "this is line 2" & cr & cr after field 1
>> put the number of lines in field 1
>> -- but there are actually four lines in field 1.
>>
>
> No, there's only three lines, but the insertion point is placed after
> the text, where the next potential line will start.
>

Actually, try this:

   put "this is line 1" & cr into field 1
   put "this is line 2" & cr & cr after field 1
   put the number of lines in field 1
   select before last char of fld 1

Now you can see where the real end of the text is.

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




More information about the use-livecode mailing list