Design Scripting Documentation
     
 
     
  Dynamic Append  
     
     
  Inputs:  
     
the number of elements to allocate
     
  Outputs:  
     
a brand new fresh dynamic array
     
  Implementation
01  function array_append( array_object, object )
02    if( isarray( array_object ) ) then
03      redim preserve array_object( ubound( array_object ) + 1 )
04      if( isobject( object ) ) then
05        set array_object( ubound( array_object ) ) = object
06      else
07        array_object( ubound( array_object ) ) = object
08      end if
09      array_append = array_object
10    else
11      array_append = vbnull
12    end if
13  end function
 
     

Creative Commons License
The Design Scripting Library, including its sources, online documentation and graphics, are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License.

Online Documentation generated by { vbdoclib } version 1.0
Color-Coding generated by { vbcc } version 2.0
Page timestamp: { Feb. 2, 2006 }





 
     
     
 
Documentation
Cover Page
Expand
Collapse
 
Array
 
Bitmap File
 
Bounding Box
 
Color
 
Container
 
Doclet
 
Ellipse
 
Intersection
 
Language
 
Map
 
Matrix
 
Number
 
Nurbs
 
Range
 
STL File
 
Streams
 
String
 
Surface
 
Text File
 
Triangle
 
Vector
 
Vertex
 
Wave File