Design Scripting Documentation
     
 
     
  Dynamic Clone  
     
     
  Inputs:  
     
the number of elements to allocate
     
  Outputs:  
     
a brand new fresh dynamic array
     
  Implementation
01  function array_clone( array_object )
02    if( isarray( array_object ) ) then
03      dim result: result = array_allocate( array_length( array_object ) )
04      for index = lbound( array_object ) to ubound( array_object )
05        result( index ) = array_object( index )
06      next
07      array_clone = result
08    else
09      array_clone = vbnull
10    end if
11  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