Basic HTML version of Foils prepared 26 Jan 98

Foil 10 Example: Arrays

From Web-Linked Database Cold Fusion Tutorial ARL Database Tutorial -- February 98. by Chao Wei Ou


<CFSET mynewarray = ArrayNew(x)>
Example:
  • <CFSET mynewarray[3] = Form.emailaddress>
Multi-Dimensional Array:
  • <CFSET myotherarray = ArrayNew(2)>
  • <CFSET biggerarray = ArrayNew(3)>
  • <CFSET biggerarray[1][1][1] = myarray>
  • <CFSET biggerarray[1][1][1][10] = some_value>
  • <CFSET biggerarray[2][1][1] = myotherarray>
  • <CFSET biggerarray[2][3][2][4][2] = some_value>



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998