Investment Studio > Views > Downloads > Downloader > ActiveX interface > DLInput > currentLevel

long DLInput.currentLevel

Keeps track of the link level in calls to the downloader script's URL generation method. The root level (first call to the URL generator) is 0. URLs obtained by crawling the root URL are added at link level 1, URLs obtained by crawling level 1 URLs are added at link level 2, and so on.

When crawling is used, it's crucial to check this property in the URL generation method and stop adding URLs at a finite (and reasonable) link level. Failure to do so will result in an endless loop.

See also DLInput.addUrl, DLInput.urlLevel.