|
|
|
|
|
- Use conditions
- Using the LooperBreakIndex function
LooperBreakIndex (Function) In french: ZoneRépétéeIndiceRupture
Warning
From version 28 (75), LooperBreakSubscript is kept for backward compatibility. This function has been replaced with LooperBreakIndex.
Returns the index of the break header and footer for a given break in a Looper control: - The index of the header for a given break also corresponds to the index of the first row in this break.
- The index of the footer for a given break also corresponds to the index of the last row in this break.
MaRépétition is int = 1
DébutRupture is int
FinRupture is int
Indice is int
Total is int
WHILE MaRépétition <= ZR_Factures.Occurrence
Total = 0
DébutRupture = LooperBreakIndex(RUPT_HautClient, MaRépétition)
FinRupture = LooperBreakIndex(RUPT_BasClient, MaRépétition)
FOR Indice = DébutRupture TO FinRupture
Total += ATT_Valeur[Indice]
END
ATT_Total[FinRupture] = Total
MaRépétition = FinRupture + 1
END
Syntax
<Result> = LooperBreakIndex(<Break header/footer> [, <Index>])
<Result>: Integer - Index of the header/footer break specified in the break containing the row at index <Index>,
- 0 if an error occurs. To get more details on the error, use ErrorInfo with the errMessage constant.
<Break header/footer>: Character string Name of the break header or footer to be used. This parameter can correspond to:- the name of the break header or break footer directly.
- <Name of Looper control>.<Name of break header/footer>
<Index>: Optional integer Index of one of the rows in the desired break. If this parameter is not specified, the index of the header/footer break specified in the break containing the current row is returned. Remarks Use conditions LooperBreakIndex can be used on: - a Looper control based on a data file,
- a Looper control populated programmatically.
Using the LooperBreakIndex function It is recommended to call LooperBreakIndex once the Looper control is displayed in its entirety. Otherwise, the indexes returned by LooperBreakIndex may not correspond to the actual indexes displayed in the Looper control. Business / UI classification: UI Code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|