Welcome to the
REALbasic Developer Magazine Beginner's Corner!
Issue: 1.6 (June/July 2003)
Author: Thomas J. Cunningham
Author Bio: Thomas is a hobbyist programmer and enjoys sharing the RB loving with others... His online RB Beginner tutorial has had over 18,000 hits!
Article Description: No description available.
Article Length (in bytes): 8,299
Starting Page Number: 28
Article Number: 1614
1614.zip Updated: 2013-03-11 19:07:56
Related Web Link(s):
Excerpt of article text...
This month I would like to take up the subject of arrays in REALbasic. Understanding and using arrays is a very valuable skill, a tool if you will, to be used in your programming activities. I will only cover the use of one-dimensional arrays.
The Array Data Structure
Why you would want to use arrays is straightforward: we need to have a list of data that we can logically refer to in our programs. We refer to each item in the array via its
indexproperty. When we program, we need access to certain information, we need to put that information somewhere, and many times an array is the perfect storage solution. Using and creating arrays needs to be clearly understood by beginners.
An array is referred to as a
data structure; a fancy term that simply means you can arrange data in a certain manner, and that the data has a structure to it. An array is nothing more than a list of data. Each item of data is arranged numerically. You assign and access the data via the array's index property, its numbered line if you will, in the list. Think of an array just like the following list of words:
...End of Excerpt. Please purchase the magazine to read the full article.