Difference between revisions of "ArrayDeepDump"

114 bytes added ,  17:21, 23 March 2011
Bug fix: added sv_destruct at the end
imported>QQuix
(Added a note about a Catch 22 when compiling a recursive function for the first time)
imported>QQuix
(Bug fix: added sv_destruct at the end)
 
(One intermediate revision by the same user not shown)
Line 194: Line 194:
                               StringToTxtFile psFile  psLine  ;#Pluggy#
                               StringToTxtFile psFile  psLine  ;#Pluggy#
         endif
         endif
         if xLevel < xDepth - 1   ; stops recursion at the last level initialized
         if xDepth > 1     ; stops recursion at the last level initialized
           set xNextLevel to xMode * 100 + xLevel + 1
           set xNextLevel to xMode * 100 + xLevel + 1
           let sText := sPrefix + sKey1
           let sText := sPrefix + sKey1
;;;; Uncomment the next line after the first successful compilation
  ;;;;      call ArrayDeepDump aEntry [Value] , sText , xNextLevel, xDepth - 1
  ;;;;      call ArrayDeepDump aEntry [Value] , sText , xNextLevel, xDepth - 1
         elseif xLevel == xDepth && xMode  == 2
         elseif xDepth == && xMode  == 2
           let sLine := sPrefix + sKey1 + " . . ."
           let sLine := sPrefix + sKey1 + " . . ."
                               printc "PrintArray>> %z " sLine
                               printc "PrintArray>> %z " sLine
Line 208: Line 210:
   
   
   endif
   endif
  sv_destruct sPrefix, sKey1, sType, sText, sLine
  end
  end


Anonymous user