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
Array tips and tricks - Array temporary data empty
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 8
- Joined: Thu Oct 04, 2012 9:29 am
Re: Array tips and tricks - Array temporary data empty
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
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
-
- Posts: 8
- Joined: Thu Oct 04, 2012 9:29 am
Re: Array tips and tricks - Array temporary data empty
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
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
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Array tips and tricks - Array temporary data empty
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/
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/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn