Page 1 of 1

Array tips and tricks - Array temporary data empty

Posted: Fri Sep 30, 2016 7:04 pm
by bruceBUS6Zc8
Hi

I am working through the Array How To steps. Below is the code quoted on the page. For the script to work the word temporary should be replaced with temp.

I am not able to post the url: (Your account does not have permission to post links or domain/page references.)

Page name below.
9678-how-do-i-convert-tab-delimited-data-into-an-array

on mouseUp
put field 2 into theData
split theData by column
put theData[1] into temporary
put theData[3] into theData[1]
put temporary into theData[3]
combine theData by column
put theData
end mouseUp

Regards

Bruce

Re: Array tips and tricks - Array temporary data empty

Posted: Sat Oct 01, 2016 4:28 am
by dunbarx
Hi.

Not sure what is in field 2. But what is your question? If I make a field with some tab and return delimited data in it, and run your handler, I get data back.

Craig Newman

Re: Array tips and tricks - Array temporary data empty

Posted: Sat Oct 01, 2016 7:12 am
by bruceBUS6Zc8
Hi

In Livecode 8.1 the word temporary is incorrect. It should be temp.

The code will execute with the following result.

If you run with temporary the column saved to temporary - put theData[1] into temporary- is empty when displayed / output as message.

put temporary into theData[3] - will show an empty column.

Column 2 is not affected.

Regards

Bruce

Re: Array tips and tricks - Array temporary data empty

Posted: Sat Oct 01, 2016 6:34 pm
by FourthWorld
Reported:
http://quality.livecode.com/show_bug.cgi?id=18523

If you find other errors in the future you can report them yourself here:
http://quality.livecode.com/