Design Scripting Documentation
     
 
     
  Array Convertion to String  
     
     
  Inputs:  
     
an array
     
  Outputs:  
     
its string prepresentation
     
  Implementation
01  function array_convert( array_object )
02    dim index:  index = 0
03    dim count:  count = array_length( array_object )
04    dim result: result = "["
05    do while( index < count )
06      if( isarray( array_object( index ) ) ) then
07        result = result + array_convert( array_object( index ) ) + vbcrlf
08      elseif( isobject( array_object( index ) ) ) then
09        result = result + ", "
10      elseif( isnull( array_object( index ) ) ) then
11        result = result + ", "
12      else
13        result = result + cstr( array_object( index ) ) + ", "
14      end if
15      index = index + 1
16    loop
17    array_convert = left( result, len( result ) - 2 ) + "]"
18  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