How do I Create a Custom Property

Trevor DeVore trevor at mangomultimedia.com
Wed Apr 21 10:40:38 EDT 2004


On Apr 21, 2004, at 7:06 AM, David Burgun wrote:
>> Again you're overly complex. If you do this:
>> put return& "myNewCustomProp"  & return after myCustomKeys
>> you will achieve exactly the same as the above statement! Yes RunRev 
>> keeps you from worrying about every detail, and that is a good thing, 
>> don't you agree?
>
> Except that it doesn't say anywhere that the last item in the list 
> doesn't have a terminator, so the line:
>
>   put "CustomTest1" after myCustomKeys
>
> doesn't append to the "list" it appends to the last item of the list! 
> Instead you have to do:
>
> put return & "myNewCustomProp"  & return after myCustomKeys
>
> Which means that you *HAVE* to know the details of how RR handles 
> "lists" and therefore need documentation!
>
> Questions: if myCustomKeys is empty, would the statement:
>
> put return & "myNewCustomProp"  & return after myCustomKeys
>
> Create a new blank entry as the first item in the "list"? If the last 
> item in the list had a terminator, would it create a new blank entry 
> in the last-1 item of the "list" ?

I realize this is partly about documentation and I haven't read through 
the whole thread, but I think a simple way around all of this is to use 
the following code:

put "my New Line" into line (number of lines of myList + 1) of myList

This has worked well for me.

-- 
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com



More information about the use-livecode mailing list