Navigation:  Classes > bBrowser >

bBrowser:SelectionNextColumn()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Determined the number of the next selected column in the active selected row.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:SelectionNextColumn() Æ iColumn

Return Value

iColumnThe number of the next selected column. If no further column is selected, the value 0 is returned. The column number refers to the list of the opened columns (see also bBrowser:ColumnOpenList).
Data type:Integer

Description

bBrowser:SelectionNextColumn() can be used only in combination with the method bBrowser:SelectionFirstColumn() and determined for the active selected row the next selected column.

 

Important note!
The method bBrowser:SelectionFirstColumn() must be invoked before invoking the method bBrowser:SelectionNextColumn().

Samples

The following sample determines all selected cells and puts these in a two-dimensional array. The first dimension contains here the record number and the second dimension a list of the selected column numbers.

 

LOCAL auSelelction AS ARRAY

LOCAL iRowCount    AS INT

LOCAL iRecNo       AS INT

LOCAL iColumn      AS INT

 

auSelection := {}

iRowCount := 0

iRecNo := oBrowser:SelectionFirstRow()

WHILE iRecNo>0

       iRowCount += 1

       AADD(auSelection, {iRecNo, {}})

 

       iColumn := oBrowser:SelectionFirstColumn()

       WHILE iColumn>0

               AADD(auSelection[iRowCount, 2], iColumn)

               iColumn := oBrowser:SelectionNextColumn()

       END

 

       iRecNo := oBrowser:SelectionNextRow()

END

See Also

bBrowser:SelectionCellCount

bBrowser:SelectionFirstColumn()

bBrowser:SelectionFirstRow()

bBrowser:SelectionMode

bBrowser:SelectionNextRow()

bBrowser:SelectionRemove()

bBrowser:SelectionRowCount

bBrowser:SelectionSet()

 


Page url: http://www.YOURSERVER.com/index.html?bbrowser_selectionnextcolumn.htm