Difference between revisions of "ArrayDeepDump"

Jump to navigation Jump to search
276 bytes added ,  18:50, 4 August 2009
Added a note about a Catch 22 when compiling a recursive function for the first time
imported>QQuix
(User Function: ArrayDeepDump)
 
imported>QQuix
(Added a note about a Catch 22 when compiling a recursive function for the first time)
 
The function is recursive, therefore limited to OBSE's maximum of 30 nested function calls.
 
There is a Catch 22 when you first compile a recursive function: the compiler will give an error at the line where the function calls itself because no such function exists yet. So I commented that line. After the first successful compilation, you should uncomment that line.
 
==Examples:==
 
==Code==
sriptnamescriptname ArrayDeepDump
array_var iaArray
set xNextLevel to xMode * 100 + xLevel + 1
let sText := sPrefix + sKey1
;;;; call zzArrayDeepDumpArrayDeepDump aEntry [Value] , sText , xNextLevel, xDepth - 1
elseif xLevel == xDepth && xMode == 2
let sLine := sPrefix + sKey1 + " . . ."
Anonymous user

Navigation menu