Array tips and tricks - Array temporary data empty

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
bruceBUS6Zc8
Posts: 8
Joined: Thu Oct 04, 2012 9:29 am

Array tips and tricks - Array temporary data empty

Post by bruceBUS6Zc8 » Fri Sep 30, 2016 7:04 pm

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: Array tips and tricks - Array temporary data empty

Post by dunbarx » Sat Oct 01, 2016 4:28 am

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

bruceBUS6Zc8
Posts: 8
Joined: Thu Oct 04, 2012 9:29 am

Re: Array tips and tricks - Array temporary data empty

Post by bruceBUS6Zc8 » Sat Oct 01, 2016 7:12 am

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Array tips and tricks - Array temporary data empty

Post by FourthWorld » Sat Oct 01, 2016 6:34 pm

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/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply