item delimiter defaults

Monte Goulding monte at sweattechnologies.com
Thu Nov 21 18:15:04 EST 2013


On 22/11/2013, at 9:21 AM, Mark Wieder wrote:

> If anything, I'd argue that things should be the other way around:
> that there be *no* default itemDelimiter, and the use of items without
> having explicitly defined the delimiter should result in a runtime
> error.

Ooo.... now that would break a heap of code... :-)

I already avoid items like the plague they are. Array syntax can be much more descriptive:

Look at this 6 months later and you know you're dealing with a name:
set the text of field "company" to tArrayA[tIndex]["name"]

Look at this 6 months later and you need to go and look at where your list is created to remember what was in item 3:
set the text of field "company" to item 3 of line tIndex of tData

Stuff like this makes my head spin:
get item 3 of line tIndex of tData
set the itemDelimiter to "|"
get item 2 of it
--- and so on...

Then there's the never having to worry about delimiters being in your data thing...

Cheers

--
M E R Goulding 
Software development services
Bespoke application development for vertical markets

mergExt - There's an external for that!




More information about the use-livecode mailing list