Click or drag to resize

IForeignKeyGet Method

Get Returns a string value, the foreign key. 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
string Get(
	string application,
	string devicename,
	string keyname
)

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

Return Value

Type: String
String – the key
Examples

Get

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

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