Navigation:  Classes > bBrowser >

bBrowser:SelectionSet()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Sets a selection in a cell or in a row.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:SelectionSet(

#Single,

[<iColumn>],

[<nRowNo>],

[<nRecNo>]

) Æ lSuccess

 

<oBrowser>:SelectionSet(

#All,

[<iColumnFrom>],

[<iColumnTo>]

) Æ lSuccess

 

<oBrowser>:SelectionSet(

#Invert

) Æ lSuccess

Arguments

#SingleSelect a single cell. If the value 0 is passed for the argument <iColumn> or the access bBrowser:CurrentMode contains the value #Line then the whole row is selected.
Data Type:Symbol

 

#AllSelect all cells in a specified column area.
Data Type:Symbol

 

#InvertInvert the whole selection.
Data Type:Symbol

 

<iColumn>The number of the column in that the selection is to be set. The column number refers to the list of the opened columns (see also bBrowser:ColumnOpenList).

 

If the value 0 is passed, then the complete row is selected.

 

If the argument is not passed, then the setting of bBrowser:CurrentMode is evaluated as follows:

 

Mode

Description

#Cell

The current cell is selected.

#FirstCell

The first cell is selected.

#Line

The complete row is selected.

 

Data Type:Integer

 

<nRowNo>The number of the row for which the selection is to be set. If the argument is not passed then the row number for the argument <nRecNo> is determined.
Data Type:Integer | Float

 

<nRecNo>The record number of the row for which the selection is to be set. If the argument is not passed then the current record number is used as default.
Data Type:Integer | Float

 

<iColumnFrom>The number of the column for which the selection is to be set. The column number refers to the list of the opened columns (see also bBrowser:ColumnOpenList). The argument is supported only with bBrowser:CurrentMode #Cell. If the argument is not specified, all columns are selected.
Data Type:Integer

 

<iColumnTo>The number of the column for which the selection is to be set. The column number refers to the list of the opened columns (see also bBrowser:ColumnOpenList). The argument is supported only with bBrowser:CurrentMode #Cell.
Data Type:Integer

Return Value

lSuccessA logical value that indicates whether the specified selection was set.
TRUEThe selection was set.
FALSEThe selection could not be set.
Data Type:Logic

Description

bBrowser:SelectionSet() sets the specified selection and redraws the concerned cells or rows.

See Also

bBrowser:SelectionCellCount

bBrowser:SelectionMode

bBrowser:SelectionRemove()

bBrowser:SelectionRestore()

bBrowser:SelectionRowCount

bBrowser:SelectionSave()

 


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