Monday, April 19, 2010

arrays in haXe

Now we will see about arrays. An array is a list of elements. They are very useful in a variety of situations. Arrays form a convenient way to handle groups of related data. We can declare a one-dimensional array like this:
var variable-name:Array = new Array();
here variable-name is the name of the array variable with type of Type. For example, we can declare myarray like the following:
var myarray:Array = new Array();
An array element is accessed by indexing the array using the number of elements. To access a specified element in an array, we use the specified position number in square brackets. Like:
myarray[10] = ”even”;
This has value ‘even’ at an index of 10.
HaXe stores one-dimensional arrays in one contiguous memory location with the first element at the lowest address.
See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

No comments: