Re: store bug

new topic     » goto parent     » topic index » view thread      » older message » newer message

This could be useful too:

function path_exists(object structure, sequence targetPath, 
                     sequence currentPath={}) 
  if equal(currentPath, targetPath) then 
    return 1 
  else 
    integer digit = targetPath[length(currentPath)+1] 
    if digit <= length(structure) then 
      return path_exists(structure[digit], targetPath, currentPath&digit) 
    else 
      return 0 
    end if 
  end if 
end function 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu