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


1 <CFSET mynewarray = ArrayNew(x)>
2 Example:
  • <CFSET mynewarray[3] = Form.emailaddress>
3 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>

in Table To:


© 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 Mon Jan 26 1998