PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Adds a title-header of columns into a Table control or into a TreeView Table control found in a window.
Title-header in a Table control
Note: You also have the ability to add a title-header of columns from the description window of Table or TreeView Table control ("Details" tab, "Edit the title-headers of columns" button).
Example
// Adds a title-header above the columns 2, 3 and 4
TableAddTitleHeader(TABLE_Turnover, 2, 4, "Forecast")
// Adds a title-header above the columns 5, 6 and 7
TableAddTitleHeader(TABLE_Turnover, 5, 7, "Performed")

// Adds a title-header above the menu columns
TableAddTitleHeader(TABLE_Menu, COL_Starter, COL_Dessert, "Menu")
Syntax

Adding a title-header on columns identified by their subscript Hide the details

TableAddTitleHeader(<Table Control> , <Subscript of First Column> , <Subscript of Last Column> , <Caption>)
<Table Control>: Control name
Name of control to use. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
If this parameter corresponds to an empty string (""), the control to which the current process belongs will be used.
<Subscript of First Column>: Integer
Subscript of column above which the title-header will start.
<Subscript of Last Column>: Integer
Subscript of column above which the title-header will end. The subscript of this column must be greater than <Subscript of First Column>.
<Caption>: Character string with quotes
Caption that must be displayed in the title-header.

Adding a title-header on columns identified by their name Hide the details

TableAddTitleHeader(<Table Control> , <Name of First Column> , <Name of Last Column> , <Caption>)
<Table Control>: Control name
Name of control to use. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
If this parameter corresponds to an empty string (""), the control to which the current process belongs will be used.
<Name of First Column>: Character string (with or without quotes)
Name of the column above which the title-header must start.
<Name of Last Column>: Character string (with or without quotes)
Name of column above which the title-header must end.
<Caption>: Character string with quotes
Caption that must be displayed in the title-header.
Remarks
  • By programming, a single title-header level can be added. To add several levels, you must use the description window of the Table or Treeview Table control ("Details" tab, "Edit the title-headers of columns" button).
  • Versions 22 and later
    ..TitleHeader is used to:
    • Find out and modify the title and the aspect of a title-header of table column.
    • Find out the number of title-headers for a table column.
    New in version 22
    ..TitleHeader is used to:
    • Find out and modify the title and the aspect of a title-header of table column.
    • Find out the number of title-headers for a table column.
    ..TitleHeader is used to:
    • Find out and modify the title and the aspect of a title-header of table column.
    • Find out the number of title-headers for a table column.
Components
WINDEVReports and Queries wd230obj.dll
Minimum required version
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment