[OT] reOrdering text
Richmond
richmondmathewson at gmail.com
Wed Jan 16 12:05:59 EST 2013
On 01/16/2013 05:19 PM, Mike Bonner wrote:
> Assuming the data is always in the same order something like the following
> works well.
>
> *on* mouseUp
>
> *put* field 1 into tData
>
> *put* 1 into tCount
>
> *repeat* for each line tLine in tData
>
> *switch* tcount
>
> *case* 1
>
> *put* tLine & cr into tTmp
>
> *put* 2 into tCount
>
> *break*
>
> *case* 2
>
> *put* tline & cr before tTmp
>
> *put* 3 into tCount
>
> *break*
>
> *default*
>
> *put* tTmp & tLine & cr after tNewData
>
> *put* 1 into tCount
>
> *end* *switch*
>
> *end* *repeat*
>
> *delete* the last char of tNewData
>
> *put* tNewData -- finished data
>
> *end* mouseUp
>
>
> Otherwise, if the order isn't perfect for all triads, you'd have to read
> each line until you get both a fishface and a finish and then put things in
> order.
>
>
>
MARVELLOUS! THANKS SO MUCH!
Richmond.
More information about the use-livecode
mailing list