Click or drag to resize

IForeignKeySet Method

Set This may be used by external application to store extra information

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
void Set(
	string application,
	string devicename,
	string keyname,
	string Value
)

Parameters

application
Type: SystemString
the external application
devicename
Type: SystemString
the external device
keyname
Type: SystemString
the name of the key where the value you want is stored
Value
Type: SystemString
the value you want to store
Examples

Set

VB
dim objso
set objso = CreateObject("superofficedb.database")
set objsoapp = CreateObject("superoffice.application")
If not (objSO is nothing) Then
    objso.login "<USERID>", "<password>"
    set mycontact = objso.getcontact(objsoapp.currentcontact.identity)
    mycontact.foreignkey.set "myapplication",  "mydevice", "mykey",  "this is my foreignkey"
    msgbox mycontact.name &  " has the following foreginkey set: " &  mycontact.foreignkey.get ("myapplication",  "mydevice", "mykey")
else
    msgbox "unable to connect to database"
end if
set objso = nothing

See Also