AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de impresión
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
iColumnNum (Function)
In french: iNumColonne
Returns the number of the current column in a multicolumn report.
Remark: This function can only be used in the reports created with the report editor.
Example
// Change the background color of a block according to the column number
// (for a report with 2 columns)
// In the "Before printing the block" event
 
MyCurrentColumn is int
MyCurrentColumn = iColumnNum()
SWITCH MyCurrentColumn
CASE 1:
MySelf.BackgroundColor = LightRed
CASE 2:
MySelf.BackgroundColor = LightGreen
END
Syntax
<Result> = iColumnNum()
<Result>: Integer
  • Number of the column currently printed,
  • -1 if an error occurred.
  • 1 if the current report is not a multicolumn report.
Remarks
  • The column numbers start from 1.
  • NbColumn is used to find out the number of columns in the current report.
Business / UI classification: Neutral code
Component: wd290etat.dll
Versión mínima requerida
  • Versión 15
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/06/2023

Señalar un error o enviar una sugerencia | Ayuda local