Click or drag to resize

IDatabaseCreateSelection Method

Create a blank Selection, Returns an error if the user us not allowed to create selections. Use SetDefaults on the selection object to fill it with sensible data

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

Return Value

Type: SOSelection
SOSelection – the new Selection object
Examples

Create a new selection

This text may be copied to the notepad, and saved as a *.vbs file. You need a running CRM client to make it work. (This example uses the SuperOffice COM application library and not the SuperOffice db library interface).

VB
dim objdb
dim objapp
dim objsel
dim objselmem
dim objcontact
set objapp =  CreateObject("superoffice.application")
if not (objapp is nothing) then
    set objdb = objapp.database
    set objsel = objdb.createselection
    objsel.setdefaults
    objsel.name = "my customers"
    objsel.save
else
    msgbox  "unable to connect to database"
end if
set objapp = nothing

See Also