Created
April 11, 2020 05:48
-
-
Save vkostyanetsky/363d09a2b5f04153e91c70d51ace4434 to your computer and use it in GitHub Desktop.
Refs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
&AtServerNoContext | |
Function Refs(MaxCount = 1000) | |
Refs = New Array; | |
For Each CatalogManager In Catalogs Do | |
Selection = CatalogManager.Select(); | |
While Selection.Next() Do | |
Refs.Add(Selection.Ref); | |
If Refs.Count() = MaxCount Then | |
Break; | |
EndIf; | |
EndDo; | |
If Refs.Count() = MaxCount Then | |
Break; | |
EndIf; | |
EndDo; | |
Return Refs; | |
EndFunction // Refs() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Функция перебирает все имеющиеся в информационной базе справочники, пока не наберет нужное количество ссылок.