Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: goodegg610 on April 15, 2012, 04:36:21 pm

Title: Help with lists
Post by: goodegg610 on April 15, 2012, 04:36:21 pm
I know this probably sounds dumb, but how do you make lists in axe and change the data in them and read it?

Also, what does the data( command do?
Title: Re: Help with lists
Post by: Juju on April 15, 2012, 04:42:38 pm
Double thread posting? Please try to avoid this, thanks. Someone will answer you if you're patient enough.

For lists, you might want to use binary blobs, like Data(1,2,3,4,5)->L1, which IIRC will store 5 bytes in L1.
Title: Re: Help with lists
Post by: goodegg610 on April 15, 2012, 05:01:01 pm
Thanks I didn't mean to double post.

How do you recalled them?
Title: Re: Help with lists
Post by: MGOS on April 16, 2012, 12:24:13 am
You can access the data by using {L1+index}->whatever
Index is the position in the array; it can be a variable or a constant. If it is 0, you get the first element, if it is 1 you get the second element etc.
To store sth in the array, use the syntax the other way round: whatever->{L1+index}
Title: Re: Help with lists
Post by: goodegg610 on April 16, 2012, 04:12:52 pm
Thank you! You are awesome