Jake's Radio Tips : Jake's cool tips for Radio UserLand users.
Updated: 5/4/02; 10:50:20 PM.

 


Radio Stuff:

Themes:

Click to see the XML version of this web page.

 
 

Monday, February 4, 2002

Phil wrote, "No arrays in UserTalk?"

We have arrays. We call them lists. Here's a list of integers:

{1, 2, 3, 4, 5}

You can add lists together if you want:

{1, 2, 3} + {4, 5} == {1, 2, 3, 4, 5}

You can reference them by index:

local (aList = {1, 2, 3});
aList[2] = 4;

After running the above, aList will contain {1, 4, 3}.

You can also mix types:

{1, "two", 0x03}

And you can nest lists:

nestedList = {1, 2, {3.0, 3.5}, 4}

In the above example, nestedList[2][1] has a value of 3.0.
9:13:35 PM    


Gartk Kidd: "I used to be phytoplankton. Now I'm either big phytoplankton, or krill. Either way, I'm whale-food. :)"

Garth: Brent has written up a bunch of tips for Frontier developers, most of which apply to Radio as well. This one in particular may be of use to you.
12:03:26 AM    


© Copyright 2002 Jake Savin.



Click here to visit the Radio UserLand website.

 


February 2002
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28    
Jan   Mar