Design Scripting Documentation
     
 
     
  Assign Element  
     
     
  Inputs:  
     
the index and some value
     
  Outputs:  
     
the same element (for chaining)
or null on out of bound errors
     
  Implementation
01  function assign( index, element )
02    if( ( index < 0 ) or ( index >= pointer + 1 ) ) then
03      assign = vbnull
04      exit function
05    else
06      if( isobject( element ) ) then
07        set elements( index ) = element
08        set assign = element
09      else
10        elements( index ) = element
11        assign = element
12      end if
13    end if
14  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