Aller au contenu principal
Version: Next

VP Get column count

VP Get column count ( vpAreaName : Text { ; sheet : Integer } ) : Integer

ParamètresTypeDescription
vpAreaNameText->Nom d'objet formulaire zone 4D View Pro
sheetInteger->Numéro d'indice de la feuille (feuille courante si omis)
RésultatInteger<-Nombre total de colonnes

Description

The VP Get column count command returns the total number of columns from the designated sheet.

In vpAreaName, pass the name property of the 4D View Pro area. Si vous passez un nom inexistant, une erreur est retournée.

You can define where to get the column count in the optional sheet parameter using the sheet index (counting begins at 0). If omitted or if you pass vk current sheet, the current spreadsheet is used.

Exemple

Le code suivant retourne le nombre de colonnes dans la zone 4D View Pro :

C_INTEGER($colCount)
$colCount:=VP Get column count("ViewProarea")

Voir également

VP Get row count
VP SET COLUMN COUNT
VP SET ROW COUNT