Click or drag to resize

IDatabaseGetSelection Method

Get an existing Selection. Returns an error if the selection is not visible for the user.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
SOSelection GetSelection(
	int SelectionId
)

Parameters

SelectionId
Type: SystemInt32
the database identifier of the selection to retrieve

Return Value

Type: SOSelection
SOSelection – the selection identified by SelectionId
Examples

Get the selection with id = 1

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
dim objdb 
dim objsel
set objdb =  CreateObject("superofficedb.database")
If Not (objDB is Nothing) Then
    objdb.login  "jr", ""
    set  objsel = objdb.getselection(19)
    msgbox  "selection with id=1 is called: " & objsel.name
else
    msgbox "could not log in"
end if
set objdb = nothing

See Also