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
SyntaxSOSelection GetSelection(
int SelectionId
)
Function GetSelection (
SelectionId As Integer
) As SOSelection
Dim instance As IDatabase
Dim SelectionId As Integer
Dim returnValue As SOSelection
returnValue = instance.GetSelection(SelectionId)
SOSelection^ GetSelection(
[InAttribute] int SelectionId
)
Parameters
- SelectionId
- Type: SystemInt32
the database identifier of the selection to retrieve
Return Value
Type:
SOSelectionSOSelection – the selection identified by SelectionId
ExamplesGet 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.
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