|
|
|
|
- Use conditions
- Using the .BreakIndex function
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 est un entier = 1
DébutRupture est un entier
FinRupture est un entier
Indice est un entier
Total est un entier
TANTQUE MaRépétition <= ZR_Factures.Occurrence
Total = 0
DébutRupture = RUPT_HautClient.IndiceRupture(MaRépétition)
FinRupture = RUPT_BasClient.IndiceRupture(MaRépétition)
POUR Indice = DébutRupture A FinRupture
Total += ATT_Valeur[Indice]
FIN
ATT_Total[FinRupture] = Total
MaRépétition = FinRupture + 1
FIN
Sintaxis
<Result> = <Break header/footer>.BreakIndex([<Index>])
<Result>: Integro - 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>: Nombre del control 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>: Entero opcional 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. Observaciones Use conditions La función .BreakIndex puede utilizarse en: - a control Looper basada en un archivo de datos,
- a control Looper poblada programáticamente.
Using the .BreakIndex function It is recommended to call .BreakIndex once the Looper control is displayed in its entirety. Otherwise, the indices returned by .BreakIndex may not correspond to the actual indices displayed in the Looper control.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|