InformationRegisterSelection.<Information register name>.Next
Syntax:
Returned value:
True - next record is selected; False - end of the selection is reached.
Description:
Availability:
Example:
// find maximum rivals price for the SelArticle goods PricesMarketing = InformationRegisters.PricesMarketing; ArticleFilter = New Structure("Nomenclature"); ArticleFilter.Nomenclature = Selection; ArticleCosts = PricesMarketing.Select(,,ArticleFilter); MaxPrice =0; Rival = "Not found"; While ArticleCosts.Next() Do If ArticleCosts.Cost > MaxPrice Then MaxPrice = ArticleCosts.Cost; Rival = ArticleCosts.Rival.Name; EndIf; EndDo; DoMessageBox("Maximum price """ + TrimAll(Selection) + """ = "+ MaxPrice + " USD. It is used by "" " + TrimAll(Rival) + """."); |