Hi All...
I have a list of items. The items in the list are in similar groups but each
group is delimited by a tab.
For example:
name:Group1
description:Animals with four legs.
creature1:cats
creature2:dogs
notes1:Animals that are pets.
notes2:Animals that have fur.
name:Group 2
Just tried it and ended up with the following. (made a stack with 2 fields,
1 with your sample text, other for output)
on mouseUp
put field 1 into tVar
set the itemdel to colon
repeat for each line tLine in tVar
switch item 1 of tLine
case name
put return
put input_file into x
replace return creature3 with space in x
replace return creature2 with space in x
put x into output_file
--- On Mon, 1/30/12, John Patten johnpat...@mac.com wrote:
From: John Patten johnpat...@mac.com
Subject: Combining some lines of text in a list?
To: use-livecode
:
From: John Patten johnpat...@mac.com
Subject: Combining some lines of text in a list?
To: use-livecode@lists.runrev.com
Date: Monday, January 30, 2012, 6:45 PM
Hi All...
I have a list of items. The items in the list are in similar groups but each
group is delimited by a tab.
For example
return creature2: with space in x
put x into output_file
--- On Mon, 1/30/12, Michael Kann mikek...@yahoo.com wrote:
From: Michael Kann mikek...@yahoo.com
Subject: Re: Combining some lines of text in a list?
To: How to use LiveCode use-livecode@lists.runrev.com
Date: Monday, January 30, 2012