|
|
|
|
|
- Use conditions
- Using the LooperBreakIndex function
LooperBreakIndex (Function)
Advertencia
A partir de la versión 28 (75), LooperBreakSubscript se conserva por motivos de compatibilidad. Esta función ha sido reemplazada por 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.
MyRow is int = 1
BreakHeader is int
BreakFooter is int
Index is int
Total is int
WHILE MyRow <= LOOP_Invoices.Count
Total = 0
BreakHeader = LooperBreakIndex(BRK_CustHeader, MyRow)
BreakFooter = LooperBreakIndex(BRK_CustFooter, MyRow)
FOR Index = BreakHeader TO BreakFooter
Total += ATT_Value[Index]
END
ATT_Total[BreakFooter] = Total
MyRow = BreakFooter + 1
END
Sintaxis
<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. Observaciones Use conditions La función LooperBreakIndex puede utilizarse en: - un control Looper basado en un archivo de datos,
- un control Looper rellenado mediante programación.
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. Clasificación Lógica de negocio / UI: Código UI
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|