How do I Create a Custom Property, part 324
David Burgun
dburgun at dsl.pipex.com
Wed Apr 21 09:16:51 EDT 2004
>>Is it always the same an all lists?
>
>>Also from reading:
>>
>>>>>put return & "myNewCustomProp" after myCustomKeys
>
>>Does it say anywhere that the last entry doesn't have/need a return
>>character?
>>The natural way of expecting a list to be formatted would be to
>>have a terminator
>>at the end of each line. If there is only one line, is there a
>>return at the beginning
>>of the line? at the end? none at all?
>
>What about:
>...
>if myCustomKeys = empty then
> put "myNewCustomProp" after myCustomKeys
>else
> put return & "myNewCustomProp" after myCustomKeys
>end if
>...
Yes, I can see this, but you then need to know the "details" of how
the "lines" are organized and since I cannot find any menton of this
is in the Transcript dictionary, it just causes confusion and wastes
time especially for a newbie who is not sure if it's their code that
is causing the problems. That is what one big thing I find missing in
RR, it doens't really say anywhere what is *supposed* to happen, so
if a problem arrises you are not sure if it's your code or some
"feature" of RR!
But anyway, surely it would be MUCH better to have each item finish
with a return, that way you would never have to worry about the
"empty" test.
>A "list" is just a number of LINES sepearated by CR!
>There is NO CR before the first line of a list.
>If there is a CR with NO characters after it, you have an EMPTY line.
>So there is NO CR after the last line of a list.
>
>Again, "list" is also pretty much selfexplainig ;-)
>
>Simply imagine a field!
>
>>I typed in "list" and "array" in the Transscript Dictionary, but
>>there is nothing there that tell
>>me anything, even though when looking at commands (like
>>"customKeys") it mentions things
>>like "propertylist".
>
>This is no keyword, so you won't find it in the docs...
>It just means "a list of properties"...
>
>Hope that helps...
>
>>Just wish they would give a definition of the parameters in commands etc.
>
>I wish there was peace on earth ;-)
Well haveing definitions of parameters in the dictionary would be one
step towards that, at least in my corner of the world!!!
All the Best
Dave
More information about the use-livecode
mailing list