PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Use conditions
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
Enumerates the breaks found in a Table control.
Example
// Lists the breaks of TABLE_MyTable
sBreakName is string
bPosition is boolean

let i = 1
sDesc is string = TableEnumBreak(TABLE_MyTable, i)
WHILE sDesc <> ""
sBreakName = ExtractString(sDesc, 1, TAB)
bPosition = ExtractString(sDesc, 2, TAB)
  IF {sBreakName, indControl}..Visible THEN
Trace(sBreakName, bPosition)
END
// Next break
i++
sDesc = TableEnumBreak(TABLE_MyTable, i)

END
// Lists the breaks of TABLE_MyTable
sBreakName is string
bPosition is boolean
nColNum is int

let i = 1
sDesc is string = TableEnumBreak(TABLE_MyTable, i)
WHILE sDesc <> ""
sBreakName = ExtractString(sDesc, 1, TAB)
bPosition = ExtractString(sDesc, 2, TAB)
nColNum = ExtractString(sDesc, 3, TAB)
  IF {sBreakName, indControl}..Visible THEN
Trace(sBreakName, bPosition, nColNum)
END
// Next break
i++
sDesc = TableEnumBreak(TABLE_MyTable, i)

END
Syntax
<Result> = TableEnumBreak(<Table control> , <Break subscript>)
<Result>: Character string
  • Description of the break for the specified subscript. This description has the following format:
    <Break name> + TAB + <Break position>
    The break position can be set to 1 (break header) or 0 (break footer).
    Description of the break for the specified subscript. This description has the following format:
    <Break> + TAB + <Break position> + TAB + <Column number>
    where:
    • <Break>: Name of break.
    • <Break position>: 1 for a break header and 0 for a break footer.
    • <Column number>: Number of the column that triggers the break.
  • Empty string ("") if the Table control contains no break or if is equal to the number of breaks found in the Table control + 1.
<Table control>: Control name
Name of Table control to use.
If this parameter corresponds to an empty string (""), the Table control to which the current process belongs will be used.
<Break subscript>: Integer
Subscript of sought break, included between 1 and the number of breaks found in the Table control + 1.
If this parameter is greater than the number of breaks found in the Table control, the function returns an empty string ("").
Remarks

Use conditions

TableEnumBreak can be used on a browsing or memory Table control.
Component : wd240obj.dll
Minimum required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment