Author Topic: Help with lists  (Read 2421 times)

0 Members and 1 Guest are viewing this topic.

Offline goodegg610

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
Help with lists
« 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?

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Help with lists
« Reply #1 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.
« Last Edit: April 15, 2012, 04:45:36 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline goodegg610

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
Re: Help with lists
« Reply #2 on: April 15, 2012, 05:01:01 pm »
Thanks I didn't mean to double post.

How do you recalled them?

Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
Re: Help with lists
« Reply #3 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}
« Last Edit: April 16, 2012, 12:24:50 am by MGOS »

Offline goodegg610

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
Re: Help with lists
« Reply #4 on: April 16, 2012, 04:12:52 pm »
Thank you! You are awesome